Interface describing a widget table of contents model.
Signal emitted when the active heading changes.
Signal emitted when a table of content section collapse state changes.
If all headings state are set at the same time, the argument is null.
Type of document supported by the model.
data-document-type attribute with this value will be set
on the tree view
Returns the list of headings.
list of headings
Signal 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
false if it is hidden. But some models may require
to be always active; e.g. to add numbering in the document.
Test whether the object has been disposed.
This property is always safe to access.
A signal emitted when any model state changes.
List of configuration options supported by the model.
Callback on heading collapse.
The new collapsed status (toggle existing status if not provided)
The 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.
Set a new active heading.
The new active heading
Whether to emit the activeHeadingChanged signal or not.
Model configuration setter.
Generated using TypeDoc