Text tile
A text of its own, or a source’s value in words, such as a note or a device’s state.
In a dashboard file: "type": "text", with the options below. Every tile also has the fields under Every tile.
Example
Section titled “Example”A tile, as it goes in a screen’s tiles:
{ "type": "text", "layout": { "x": 1, "y": 1, "width": 4, "height": 1 }, "options": { "text": "Welcome home", "size": 28, "align": "left" }}It reads no data source.
Options
Section titled “Options”| Field | Type | Default | What |
|---|---|---|---|
text |
text | "" |
Text. Shown where the tile reads no source. |
source |
data source name | primary |
Reading. One of the tile’s data sources, by name, that gives a text, a number, on or off or a level. Its value instead of the text. |
unit |
text | "" |
Unit. Shown after a reading’s number, such as W or °C. |
size |
number, above 0 | 20 |
Text size. In pixels. A look option: a tile style can set it. |
align |
one of left, center (Centre), right |
center |
Alignment. Across. A look option: a tile style can set it. |
valign |
one of top, center (Middle), bottom |
center |
Vertical alignment. Up and down. A look option: a tile style can set it. |
wrap |
true or false |
true |
Word wrap. Off: each line stays one line, cut off at the edge. A look option: a tile style can set it. |
Built-in styles
Section titled “Built-in styles”The styles the app offers for it, after “The dashboard’s style”. Style files says what they set.
- Centred
- Left aligned
- Compact
- Icon at the left