Widget
BuiltSingleton
Bounds, mode, state page and toggled variables of the home-screen widget a definition renders in. Empty on wallpapers.
| Module type | widget |
|---|---|
| Default expression ID | widget |
| Refresh rate | Per widget update |
Declaration
<module type="widget" id="widget" />Properties
Reference any of these from a template via{widget:propertyName}.
| Name | Description | Example | Format arg |
|---|---|---|---|
width | Widget width in dp | 250 | — |
height | Widget height in dp | 110 | — |
mode | standalone or overlay | standalone | — |
page | Current state page index (switchPage action) | 0 | — |
isWidget | true when rendering in a widget, false on a wallpaper | true | — |
var.<name> | A variable flipped by the toggle action (true/false) | false | — |