<globals>
Declares app-wide variables, kept across pages and optionally saved on the device.
<column style="gap-8 w-full">
<globals persist
volume="60"/>
<text style="font-bold">Volume @{$volume}</text>
<slider name="volume"
value="$volume"
min="0"
max="100"/>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
persist |
Keep these variables across restarts (per app); the declared values are the first-launch defaults. Text, numbers, true/false, and lists and maps of them come back as they were: a list stays a list. boolean |
false |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.