time input: refactor to allow setting value reactively
This commit is contained in:
1 parent
2e3de49851
commit
a99384e887
2 files changed
+79
-77
No files matched your search
@@ -266,7 +266,14 @@
|
||||
<TimeInput label="Compact time" compact bind:value={timeValue} />
|
||||
</InputGroup>
|
||||
<InputGroup>
|
||||
<p>Selected time is {formatTime(timeValue, 'undefined')}</p>
|
||||
<p>Selected time is {formatTime(timeValue, 'undefined')} ({timeValue?.toString()})</p>
|
||||
<Button
|
||||
onclick={() => {
|
||||
timeValue = new Time(15, 0);
|
||||
}}
|
||||
>
|
||||
Set 3:00 PM
|
||||
</Button>
|
||||
</InputGroup>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user