@tempots/dom
emitValueAsDateTime() function
Emits the value of an HTMLInputElement as a Date object.
Signature:
emitValueAsDateTime: (fn: (date: Date) => void) => (event: Event) => void
Parameters
Parameter |
Type |
Description |
---|---|---|
fn |
(date: Date) => void |
The callback function to be called with the emitted Date object. |
Returns: (event: Event) => void
The event handler function.