@tempots/dom

BindDateTime() function

Binds a Date property to an input element. The binding is two-way.

Signature:

BindDateTime: (prop: Prop<Date>, handler?: keyof typeof on) => Renderable

Parameters

Parameter

Type

Description

prop

Prop

The Date property to bind.

handler

keyof typeof on

(Optional) The event handler to use (default: 'input').

Returns: Renderable

A Renderable.