Index

mmo-toc

1 symbol · generated 30 Sep 2026

element

mmo-toc

mmo-toc.jhs:1

TOC element to create a table of content for a target element

<mmo-toc target></mmo-toc>
Extends
CustomShadowElement

Index

targetthe target element to create the table of content for
MMO_TOC_SID static
target accessorGet 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.jhs

the target element to create the table of content for

target

Constants1

Properties1

target

accessormmo-toc.jhs:43

Get the target of the TOC

get target() set target(value)
Type
HTMLElement

Methods4

updateVisible()

mmo-toc.jhs:60

Update the active class for visible headings

updateVisible()

getLevel(node)

mmo-toc.jhs:95

Get the level of the node

getLevel(node)
nodeHTMLElement- The node to get the level of
returnsnumberThe level of the node

Slots1

(default)

mmo-toc.jhs

anything to show above the generated list (a title, a filter)

<slot>