bind Module

Two-way binding for HTML input elements.

Nested modules

Modules Description

change

Bind to the value of an input. The value is updated on the onchange event.

input

Bind to the value of an input. The value is updated on the oninput event.

withCulture

Bind to the value of an input and convert using the given CultureInfo.

Functions and values

Function or value Description

checked value callback

Full Usage: checked value callback

Parameters:
    value : bool - The current checked state.
    callback : bool -> unit - The function called when the checked state changes.

Returns: Attr
Modifiers: inline

Bind a boolean to the value of a checkbox.

value : bool

The current checked state.

callback : bool -> unit

The function called when the checked state changes.

Returns: Attr