LongLink State Elements
State
Definition
Declares local reactive page state before the page renders.
Usage
Use State near the top of the page when controls need writable local values.
Attributes
idrequired. Literal state name exposed in XML expressions.additional attributes. Initial state fields. JSON values are parsed first, otherwise the value is evaluated.
Children
State is setup-only and cannot have children.
Example
xml<State id="form" name="" active="true" /><TextInput label="Name" value="$form.name" />