New: the AI firewall watches every module and explains each incident in plain words. See how it works

Your own widgets

The widget library: save a card as a widget, author HTML template widgets with settings and slots, and publish versions safely.

Besides the built-in widgets, your organisation can keep its own. The simplest way is to save a card you configured as a widget. Administrators can also author widgets from an HTML template, with their own settings form and data slots, and publish versions of them. Widgets live in the widget library.

The widget library

Open Widgets in the menu (under Configuration). “Everything that can be placed on a dashboard.”

ShelfHolds
SystemThe built-in widgets and those the modules add (“Modules contribute widgets as they are enabled.”)
TenantWidgets shared with the whole organisation
My widgetsYour private widgets (“Widgets you create appear on this shelf.”)
FavouritesThe widgets you starred, from any shelf

The table shows Name, Category and Used by (how many cards use it), with a Kind filter: Built in, HTML template, Plugin frame. Edit opens a widget you may change.

WhoMay
Every member (Create and edit your own private widgets)Create private widgets for themselves
Administrators (Create and edit widgets, Publish widget versions)Create, edit and publish widgets for everyone

Your plan sets how many shared custom widgets your organisation may have. Each member’s private widgets count against their own allowance under the same limit, so private widgets never use up the shared ones.

Save a card as a widget

  1. Configure a card on a board the way you want it.
  2. In its settings, select Save as widget… (“Saves this card’s current settings and data as a reusable widget in your library.”).
  3. The widget appears under My widgets: “Saved as a widget in your library.” Place it on any board from Add widget > My widgets.

Create a widget

  1. In the widget library, select New widget.
  2. Choose how to start: From a ready chart (a built-in chart with your defaults) or From an HTML template.
  3. Enter a Name and a Category, and choose Only me or Everyone (admin only).
  4. Select Create. The widget editor opens.

The widget editor

The editor shows a Live preview on the left and the Settings form on the right. The preview is drawn by the same sandboxed frame a board uses, so what you see is what boards get. The tabs:

TabHolds
TemplateThe HTML of an HTML template widget. A built-in or plugin widget says it “is rendered by code we ship, so there is no template to edit here”.
SchemaThe settings fields: Key, Label, Type. “Every field you add here appears in the panel on the right — and in the drawer an operator opens on a placement.” Removing a field removes its default too.
DataUp to 6 data slots: Slot key, Label, Shape (scalar, series, table, record), Required. “A slot says what the widget NEEDS — a scalar, a series — never where it comes from.” Each card chooses the source.
ActionsRead-only: actions are set per card, in the board’s settings drawer.

Use these as defaults writes the settings on screen into the widget’s defaults.

Writing an HTML template

  • A settings field is a token: a field title is {{title}}.
  • A scalar data slot main is {{data_main}}. Richer shapes are in window.WIDGET_DATA.<slot> for the template’s own script.
  • To make something clickable, call window.widgetAction() or give an element data-widget-action. The card then runs the actions its board configured; the template never names a destination.
<div style="font: 600 32px system-ui">{{data_main}} {{unit}}</div>
<div style="color: #666">{{caption}}</div>
<button data-widget-action>Details</button>

The template runs in a frame with no access to Hermetry, your session or other cards, under its own content security policy. Template widgets show on display screens.

Drafts, versions and publishing

A widget has a status: Draft, Published or Archived. Your edits go into the draft and are saved as you type (also Ctrl+S); the header says “unsaved…” then Saved. Undo and redo (Ctrl+Z, Ctrl+Shift+Z) work while you edit. Boards only see published versions, so a draft never changes a board.

ActionEffect
PublishMakes the draft a new version (from Draft or Published). Cards on boards follow it.
UnpublishSets a published widget back to Draft.
ArchiveRetires a draft or published widget (Archived).
RestoreBrings an archived widget back as a Draft.

The editor offers only the moves the widget’s status allows.

When a publish changes settings that cards already use, the dialog Settings changes since the last publish lists them: renamed, removed, retyped, narrowed or deprecated fields. If a new field replaces a removed one, say so (“ is now …”) and the values move to it. Cards already on boards keep the old defaults keeps existing cards as they look now; off, cards that never set a value follow the new default.

If two people edit one widget, the second save is refused rather than silently overwriting the first.

System widgets

A system widget ships with the platform. Editing one shows “This is a system widget. It ships with the platform, so edits here are not what an upgrade will keep.” A shared widget of your own cannot take the type name of a platform widget.

Moving widgets

A board file names the widgets its cards use but does not carry their definitions. Before you import a board that uses your own widgets into another organisation, recreate those widgets there. See Board templates and board files.