Readonly activeActive heading
Readonly activeSignal emitted when the active heading changes.
Readonly collapseSignal emitted when a table of content section collapse state changes.
If all headings state are set at the same time, the argument is null.
Readonly configurationModel configuration
Readonly documentType of document supported by the model.
A data-document-type attribute with this value will be set
on the tree view .jp-TableOfContents-content[data-document-type="..."]
Readonly headingsReturns the list of headings.
list of headings
Readonly headingsSignal emitted when the headings changes.
Whether the model needs to be kept up to date or not.
This is set to true if the ToC panel is visible and
to false if it is hidden. But some models may require
to be always active; e.g. to add numbering in the document.
Readonly isReadonly stateA signal emitted when any model state changes.
Readonly supportedList of configuration options supported by the model.
Optional titleDocument title
Callback on heading collapse.
Optional collapsed?: booleanThe new collapsed status (toggle existing status if not provided)
Optional heading?: HThe heading to change state (all headings if not provided)
Dispose of the resources held by the object.
If the object's dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Model configuration setter.
New configuration
Generated using TypeDoc
Interface describing a widget table of contents model.