TextBox Module
Builders for the `TextBox` control — a single-line editable text field.
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
onChanged arg1
Parameters:
string -> 'msg
Returns: Attr<'msg>
Type parameters: 'msg |
Emit a `'msg` carrying the edited `string` on each `TextBox` change (`Attr.onChanged`).
|
|
Make a `TextBox` display-only (`Attr.readOnly`; `true` shows the value but blocks editing). Omitted ≡ editable.
|
Full Usage:
validation arg1
Parameters:
ValidationState
Returns: Attr<'msg>
Type parameters: 'msg |
Attach a `ValidationState` to a `TextBox` so it renders the matching valid/invalid styling (`Attr.validation`).
|
|
Set the current text in a `TextBox` (`Attr.value`; a controlled `string` driven from model state and reconciled via `onChanged`).
|