Item

constructor(heading: Heading, subItems: List<TableOfContents.Item> = emptyList())

Shorthand constructor for creating an item from a heading.

Parameters

heading

heading to create the item from

subItems

nested items


constructor(text: InlineContent, target: Identifiable, depth: Int, subItems: List<TableOfContents.Item> = emptyList())

Parameters

text

text of the item

target

element the item links to

depth

depth of the item. This does not necessarily correspond to the depth of this item in the stack of items, but rather represents the importance of the item.

subItems

nested items