Guides
Your first widget
New here? Build one widget from a first reading to a tile on your dashboard, in four checked steps.
Build your first widget ↗Templates and interactions
How a widget works
The three parts of a widget, how Tiledash draws and updates one, and why a widget of your own can’t harm your dashboard.
Liquid
The template language a widget is written in, with its output, filters, conditions, loops and partials, and what Tiledash leaves out.
Expressions
Calculate, compare and choose in a template with let, double-brace expressions, conditions and a short list of functions.
Taps and handlers
Make parts of a widget do something when they are tapped, held or changed, or let whoever uses the widget choose what a tap does.
Open a widget popup
Keep the tile small and put extra controls in a popup or side panel.
Settings
Let each tile choose a device, a number, a colour or a title, and read the choice in the template and in the style.
Style and reuse
Styling
How a widget’s CSS is scoped, how to use the theme’s variables, make it fit any tile size, behave on e-ink and respect motion, and what CSS is allowed.
Layout blocks
Fold content into sections, switch between tabs, place icons and pictures anywhere, and make items follow the tile’s own layout settings.
Partials
Share a piece of template between widgets with render, give it parameters, use the partials that come with Tiledash or from the community, and share your own.
Widgets in widgets
Draw other widgets inside your own, such as a room card that shows each of its devices with its usual tile, and what a widget inside a widget may and may not do.
Translations
Show a widget or partial in the viewer's language, with its texts, name and settings translated, and how translations travel with a widget you publish.
Make your own theme
Make a theme of your own in the theme editor: start from a built-in one, set five key colours, pair light and dark, and save it.
JavaScript
Scripts
Give a widget its own JavaScript and outside libraries, for what a template can't do, such as a chart library or a canvas. Where it runs, what it may do, and how people accept it.
Add JavaScript to a widget
Use client.js for a chart library, canvas or custom interaction that a template cannot provide.
Declare script permissions
Give a script only the context, actions and outside hosts it needs.
Ship
Make your own widget
The same first steps in the app, with screenshots.
Publish a widget
Share a widget in the Community from the editor.
Publishing from the command line
Check, pack and publish your widgets, themes and partials to the Tiledash community with the tiledash command, from your terminal or from GitHub Actions.
More
React to a motion sensor
Make a widget that is calm from across the room and shows more when someone comes close, using a motion sensor, a presence sensor or a yes/no variable.