Switch Module
Builders for the `Switch` control — a sliding on/off toggle (the track-and-thumb form of a boolean).
Functions and values
| Function or value |
Description
|
|
Set the on/off position of a `Switch` (`Attr.checked'`; `true` slides the thumb on). A controlled value driven from model state and reconciled via `onChanged`.
|
|
|
Full Usage:
onChanged arg1
Parameters:
bool -> 'msg
Returns: Attr<'msg>
Type parameters: 'msg |
Emit a `'msg` carrying the new `bool` when a `Switch` is flipped (`Attr.onChanged`).
|