mmo-toc
1 symbol · generated 27 Oct 2026
mmo-toc
mmo-toc.jhs:1TOC element to create a table of content for a target element
- Extends
- CustomShadowElement
Index
| target | the target element to create the table of content for | |
| MMO_TOC_SID static | ||
| target accessor | Get the target of the TOC | |
| init() | ||
| updateVisible() | Update the active class for visible headings | |
| getLevel(node) | Get the level of the node | |
| update() | Update the TOC | |
| (default) | anything to show above the generated list (a title, a filter) |
Attributes1
target
mmo-toc.jhsthe target element to create the table of content for
target
Constants1
MMO_TOC_SID
staticmmo-toc.jhs:18Properties1
target
accessormmo-toc.jhs:45Get the target of the TOC
- Type
HTMLElement
Methods4
init()
mmo-toc.jhs:20updateVisible()
mmo-toc.jhs:62Update the active class for visible headings
getLevel(node)
mmo-toc.jhs:97Get the level of the node
| node | HTMLElement | - The node to get the level of |
| returns | number | The level of the node |
update()
mmo-toc.jhs:108Update the TOC
Slots1
(default)
mmo-toc.jhsanything to show above the generated list (a title, a filter)
<slot>