MarkdownTableOfContentsModel | @jupyterlab (original) (raw)
Hierarchy (View Summary)
- TableOfContentsModel<
IEditorHeading,
IDocumentWidget<FileEditor, DocumentRegistry.IModel>,
>- MarkdownTableOfContentsModel
Index
Constructors
constructor
- new MarkdownTableOfContentsModel(
widget: IDocumentWidget<FileEditor, DocumentRegistry.IModel>,
configuration?: TableOfContents.IConfig,
): MarkdownTableOfContentsModel Parameters
- widget: IDocumentWidget<FileEditor, DocumentRegistry.IModel>
Optional
configuration: TableOfContents.IConfig
Returns MarkdownTableOfContentsModel
Properties
Readonly
stateChanged
Protected
widget
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
documentType
- get documentType(): string
Returns string
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
getHeadings
- getHeadings(): Promise<null | IEditorHeading[]>
Promise<null | IEditorHeading[]>
Returns
The list of new headings or null
if nothing needs to be updated.
Protected
isHeadingEqual
- isHeadingEqual(heading1: IEditorHeading, heading2: IEditorHeading): boolean
Returns boolean
Whether the headings are equal.
refresh
setActiveHeading
- setActiveHeading(heading: null | IEditorHeading, emitSignal?: boolean): void
Returns void
setConfiguration
- setConfiguration(c: Partial<TableOfContents.IConfig>): void
Returns void
toggleCollapse
- toggleCollapse(options: { collapsed?: boolean; heading?: IEditorHeading }): void
Parameters
- options: { collapsed?: boolean; heading?: IEditorHeading }
* #####Optional
collapsed?: boolean
* #####Optional
heading?: IEditorHeading
- options: { collapsed?: boolean; heading?: IEditorHeading }