update readme

This commit is contained in:
schreifuchs 2025-02-24 11:53:47 +01:00
parent 3a244eb95e
commit 7ec12189e8

View File

@ -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`. 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
/>
```