@tempots/dom
BindDate() function
Binds a Date
property to an input element. The binding is two-way. Changes to the input element will update the property but will only be affected by day changes and ignore time changes.
Signature:
BindDate: (prop: Prop<Date>, handler?: keyof typeof on) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
prop |
The | |
handler |
keyof typeof on |
(Optional) The event handler to use (default: 'input'). |
Returns: Renderable
A Renderable.