update readme
This commit is contained in:
parent
3a244eb95e
commit
7ec12189e8
16
README.md
16
README.md
@ -38,3 +38,19 @@ to this in your browser, and you can call your Go code from devtools.
|
||||
|
||||
To build a redistributable, production mode package, use `wails build`.
|
||||
|
||||
## Tricks:
|
||||
|
||||
### Inputs for date objects
|
||||
```svelte
|
||||
<div class="m-5">
|
||||
<Label>Start</Label>
|
||||
<Input
|
||||
type="datetime-local"
|
||||
value={session.Start.toISOString().slice(0, 16)}
|
||||
onchange={(e) => {
|
||||
// @ts-ignore
|
||||
session.Start = new Date(e.target.value);
|
||||
}}
|
||||
required
|
||||
/>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user