Index

mmo-tabs

1 symbol · generated 30 Sep 2026

element

mmo-tabs

mmo-tabs.jhs:1

Tabs element to display a list of tabs.

<mmo-tabs></mmo-tabs>
Extends
CustomShadowElement
The tabs and the panes are both slotted: a tab carries `target-id`, the pane it shows carries that `id`, so the markup stays flat and a pane can be anything.

Index

init()
setActive(tab)Set the active tab
tabsthe tabs themselves, each one with a target-id
(default)the panes, each one with the id a tab points at
.linethe quiet form: tabs on a rule, the active one breaking it, instead of the default segmented track

Methods2

setActive(tab)

mmo-tabs.jhs:56

Set the active tab

setActive(tab)
tabHTMLElement- The tab to set as active

Slots2

tabs

mmo-tabs.jhs

the tabs themselves, each one with a target-id

<slot name="tabs">

(default)

mmo-tabs.jhs

the panes, each one with the id a tab points at

<slot>

CSS hooks1

.line

mmo-tabs.jhs

the quiet form: tabs on a rule, the active one breaking it, instead of the default segmented track

.line