Zustände
live, pausiert und veraltet mit passender Aktion
Feedback
For pages that refresh automatically (live views, dashboards): state dot, label and the last update time in mono, plus pause/resume or manual refresh. With an HTMX request the button fires tc-action (hx-trigger), otherwise it toggles live/paused and fires tc-change (detail: {status}). With timestamp, the browser switches to "stale" after stale_after seconds without an update. Property status; methods pause(), resume().
live, pausiert und veraltet mit passender Aktion
Aktualisieren lädt das Dashboard neu; mit Zeitstempel wird die Anzeige nach 5 Min. veraltet
<tc-live-status> direkt im Markup; Umschalten feuert tc-change, pause() und resume().
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
status | 'live' | Live, paused or stale. | |
label | '' | – | Override the state label. |
updated | '' | – | Display time of the last update, e.g. "14:59:43". |
updated_label | '' | – | Prefix of the update time; defaults to "Last update". |
timestamp | '' | – | ISO time of the last update (enables the stale timer). |
stale_after | 300 | – | Seconds without update until "stale". |
age | '' | – | Age text for the stale state, e.g. "vor 8 Min.". |
action | True | – | Show the pause/resume/refresh button. |
Zusätzliche Attribute (z. B. class, aria-*, data-*) und HTMX-Kurzformen (get, post, get_url, post_url, target, swap, trigger, confirm) werden an das Element „root“ durchgereicht.