@tempots/dom
BindText() function
Binds a string
property to an input element. The binding is two-way.
Signature:
BindText: (prop: Prop<string>, 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.