TableOfContentsView

constructor(maxDepth: Int, focusedItem: InlineContent? = null)

Parameters

maxDepth

maximum depth the table of contents to display. For instance, if maxDepth is 2, only headings of level 1 and 2 will be displayed

focusedItem

if not null, adds focus to the item of the table of contents with the same text content as this value