Skip to content

hd-dashboard

Attributes and example

hd-dashboard

Draws another dashboard of the same Homey inside this widget, live and tappable, filling its box (73). Name it with dashboard, the value of a dashboard setting (e.g. {{ settings.dashboard.id }}): a dashboard id written out in the template draws nothing. A narrow box gets its Phone arrangement, a wide one Desktop’s. Drawn and kept live only while on screen; at most 2 per widget, and three dashboards deep. The dashboard it is on, a loop or another Homey’s dashboard show a note instead. Where no dashboard can be drawn (the gallery, the editor’s preview) it is a sketch.

AttributeWhat it is
dashboardrequiredThe dashboard to show: a dashboard setting’s value, e.g. {{ settings.dashboard.id }}.
themehost (the default) draws it on this dashboard’s theme; own on its own theme.One of host, own. Default host.
sizeWhich arrangement it shows: auto (the default) by the box’s width, or one size always.One of auto, phone, tablet, desktop. Default auto.
fitauto (the default) as the dashboard’s own Fit to screen; fit shrinks it to the box; scroll keeps its size and scrolls up and down.One of auto, fit, scroll. Default auto.
titleIts name above the tiles.Default false.
<hd-dashboard dashboard="{{ settings.dashboard.id }}" theme="host"></hd-dashboard>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

--hd-radius-sm
Small corners: chips, small buttons.
--hd-text
Text and big numbers.

Style the host

hd-dashboard {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables