Partials

Partials

Pieces of template you can render in your own with {% render %}, so a value row looks the same everywhere. Make your own on Pro.

Every partial also sees the tile’s device, as the widget does, unless the render gives its own device:.

Tiledash’s partials

device-head

The head row the built-in device widgets use: an icon and a name.

AttributeWhat it is
deviceThe device: its icon, name and room, and whether it is available. The tile’s own device unless given another.device · optional.
chipA word at the end, such as a mode.any value · optional.
nameInstead of the device’s name.text · optional.
iconInstead of the device’s icon.icon · optional.
roomInstead of the device’s room.text · optional.
{% render 'device-head', device: device %}

value-row

A label on the left and a value with its unit on the right, for lists of readings.

AttributeWhat it is
labelrequiredWhat the value is.text · required.
valuerequiredThe value.any value · required.
unitIts unit, smaller.text · optional.
iconAn icon before the label.icon · optional.
{% render 'value-row', label: 'Power', value: cap.measure_power.text %}