set and toggle
Change existing writable state or host bindings.
Quick reference
| Syntax | Behavior |
|---|---|
set path to expression | Assign an existing writable path. |
toggle path | Negate a writable boolean. |
Example
<Column state="{open:false}"><Button title="Toggle" on-press="toggle open" /></Column>
Rules and validation
Do not write data, props, event, refs, handler locals, or runtime-owned busy fields. Local state supports existing nested paths; host binding writes use registered writable bindings. Values must satisfy their owner’s contract.