TableOfContentsModel | @jupyterlab (original) (raw)
Class TableOfContentsModel<H, T>Abstract
Type Parameters
- H extends TableOfContents.IHeading
- T extends Widget = Widget
Hierarchy (View Summary)
Implements
Index
Constructors
constructor
- new TableOfContentsModel<
H extends TableOfContents.IHeading,
T extends Widget = Widget,
>(
widget: T,
configuration?: TableOfContents.IConfig,
): TableOfContentsModel<H, T> Type Parameters
- H extends TableOfContents.IHeading
- T extends Widget = Widget
Returns TableOfContentsModel<H, T>
Properties
Abstract
Readonly
documentType
documentType: string
Readonly
stateChanged
Protected
widget
widget: T
Accessors
activeHeading
table of contents active entry
activeHeadingChanged
- get activeHeadingChanged(): ISignal<TableOfContents.IModel<H>, null | H>
ISignal<TableOfContents.IModel<H>, null | H>
Returns
collapseChanged
- get collapseChanged(): ISignal<TableOfContents.IModel<H>, null | H>
ISignal<TableOfContents.IModel<H>, null | H>
Returns
configuration
- get configuration(): TableOfContents.IConfig
TableOfContents.IConfig
Returns
headings
table of contents list of headings
headingsChanged
- get headingsChanged(): ISignal<TableOfContents.IModel<H>, void>
ISignal<TableOfContents.IModel<H>, void>
Returns
isActive
- get isActive(): boolean
Returns boolean
- set isActive(v: boolean): void
Returns void
Protected
isAlwaysActive
- get isAlwaysActive(): boolean
Returns boolean
isDisposed
- get isDisposed(): boolean
Returns boolean
supportedOptions
- get supportedOptions(): (keyof TableOfContents.IConfig)[]
TableOfContents.IConfig)[]
Returns (keyof
title
- get title(): undefined | string
Returns undefined | string
- set title(v: undefined | string): void
Parameters
- v: undefined | string
Returns void
Methods
dispose
- dispose(): void
Returns void
Protected
Abstract
getHeadings
The list of new headings or null
if nothing needs to be updated.
Protected
isHeadingEqual
Returns boolean
Whether the headings are equal.
refresh
setActiveHeading
- setActiveHeading(heading: null | H, emitSignal?: boolean): void
Parameters
- heading: null | H
- emitSignal: boolean = true
Returns void
setConfiguration
- setConfiguration(c: Partial<TableOfContents.IConfig>): void
Returns void
toggleCollapse
- toggleCollapse(options: { collapsed?: boolean; heading?: H }): void
Parameters