mmo-toc
1 symbol · generated 30 Sep 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:17Properties1
target
accessormmo-toc.jhs:43Get the target of the TOC
- Type
HTMLElement
Methods4
init()
mmo-toc.jhs:19updateVisible()
mmo-toc.jhs:60Update the active class for visible headings
getLevel(node)
mmo-toc.jhs:95Get 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:106Update the TOC
Slots1
(default)
mmo-toc.jhsanything to show above the generated list (a title, a filter)
<slot>