-
Notifications
You must be signed in to change notification settings - Fork 0
Navigation and Persistence
tempus2016 edited this page Jun 24, 2026
·
3 revisions
- Click / tap a tab.
- Keyboard (when the bar is focused): ←/→ (or ↑/↓ for left/right bars) move between tabs and wrap around; Home/End jump to first/last.
-
Swipe (optional): set
swipe: trueto change tabs with a left/right swipe on touch devices.
The remember option controls what happens when you leave and return:
| Mode | Behaviour |
|---|---|
none (default) |
Always start on default_tab. |
browser |
The selected tab is saved in localStorage, per dashboard + tab set, on that browser. |
url |
The selected tab is written to the URL hash (#tab=<name>), so links and reloads keep it and it can be deep-linked/shared. |
type: custom:tabdeck-card
remember: url
default_tab: Climate
tabs: [ ... ]- With
remember: url, give your tabs unique names so the hash maps unambiguously. -
default_tabstill applies as the fallback when no remembered value is found. - Lazy-mounted tabs (
lazy: true) keep state once built; switching away does not destroy them.
Concepts
Features