@tempots/dom

BindNumber() function

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

Signature:

BindNumber: (prop: Prop<number>, handler?: keyof typeof on) => Renderable

Parameters

Parameter

Type

Description

prop

Prop

The number property to bind.

handler

keyof typeof on

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

Returns: Renderable

A Renderable.