← All modules

Widget

BuiltSingleton

Bounds, mode, state page and toggled variables of the home-screen widget a definition renders in. Empty on wallpapers.

Module typewidget
Default expression IDwidget
Refresh ratePer widget update

Declaration

<module type="widget" id="widget" />

Properties

Reference any of these from a template via{widget:propertyName}.

NameDescriptionExampleFormat arg
widthWidget width in dp250—
heightWidget height in dp110—
modestandalone or overlaystandalone—
pageCurrent state page index (switchPage action)0—
isWidgettrue when rendering in a widget, false on a wallpapertrue—
var.<name>A variable flipped by the toggle action (true/false)false—