← All components

<conditional>

Content Wallpaper Widget

Conditionally render children based on an expression result.

Example

<conditional when="{sys:battery | lte:20}"><text color="#FF0000">Low battery!</text></conditional>

Attributes

Name Type Default Description
when String Expression that evaluates to true/false