Button Module
Builders for the `Button` control — a clickable command surface with a text label.
Functions and values
| Function or value |
Description
|
|
|
|
Set whether a `Button` is interactive (`Attr`; `false` greys it out and suppresses click dispatch). Omitted ≡ enabled.
|
|
Emit a fixed `'msg` when the `Button` is clicked (`Attr.onClick`); use `onClickWith` when the message depends on the event.
|
Full Usage:
onClickWith arg1
Parameters:
ControlEvent -> 'msg
Returns: Attr<'msg>
Type parameters: 'msg |
Emit a `'msg` derived from the `ControlEvent` when the `Button` is clicked — the event-aware counterpart to `Button.onClick`.
|
Set the `Button` label (`Attr` carrying the caption rendered on the command surface).
|