NotebookToCModel | @jupyterlab (original) (raw)
Hierarchy (View Summary)
- TableOfContentsModel<INotebookHeading, NotebookPanel>
- NotebookToCModel
Index
Constructors
constructor
- new NotebookToCModel(
widget: NotebookPanel,
parser: null | IMarkdownParser,
sanitizer: IRenderMime.ISanitizer,
configuration?: TableOfContents.IConfig,
): NotebookToCModel Parameters
- widget: NotebookPanel
- parser: null | IMarkdownParser
- sanitizer: IRenderMime.ISanitizer
Optional
configuration: TableOfContents.IConfig
Returns NotebookToCModel
Properties
Protected
configMetadataMap
configMetadataMap: { [k: string | number]: string[] } = ...
Protected
parser
Protected
sanitizer
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
getCellHeadings
- getCellHeadings(cell: Cell<ICellModel>): INotebookHeading[]
INotebookHeading[]
Returns
The associated headings
Protected
getHeadings
- getHeadings(): Promise<null | INotebookHeading[]>
Promise<null | INotebookHeading[]>
Returns
The list of new headings or null
if nothing needs to be updated.
Protected
isHeadingEqual
- isHeadingEqual(heading1: INotebookHeading, heading2: INotebookHeading): boolean
Returns boolean
Whether the headings are equal.
Protected
loadConfigurationFromMetadata
- loadConfigurationFromMetadata(): Partial<TableOfContents.IConfig>
Partial<TableOfContents.IConfig>
Returns
ToC configuration from metadata
Protected
onActiveCellChanged
- onActiveCellChanged(notebook: Notebook, cell: Cell<ICellModel>): void
Returns void
Protected
onExecuted
- onExecuted(
_: unknown,
args: {
cell: Cell<ICellModel>;
error: null | KernelError;
notebook: Notebook;
success: boolean;
},
): void Parameters
- _: unknown
- args: {
cell: Cell<ICellModel>;
error: null | KernelError;
notebook: Notebook;
success: boolean;
}
Returns void
Protected
onExecutionScheduled
- onExecutionScheduled(
_: unknown,
args: { cell: Cell<ICellModel>; notebook: Notebook },
): void Returns void
Protected
onHeadingsChanged
- onHeadingsChanged(): void
Returns void
Protected
onMetadataChanged
- onMetadataChanged(): void
Returns void
Protected
onOutputCleared
- onOutputCleared(
_: unknown,
args: { cell: Cell<ICellModel>; notebook: Notebook },
): void Returns void
refresh
setActiveHeading
- setActiveHeading(heading: null | INotebookHeading, emitSignal?: boolean): void
Returns void
setConfiguration
- setConfiguration(c: Partial<TableOfContents.IConfig>): void
Returns void
toggleCollapse
- toggleCollapse(
options: { collapsed?: boolean; heading?: INotebookHeading },
): void Parameters
- options: { collapsed?: boolean; heading?: INotebookHeading }
* #####Optional
collapsed?: boolean
* #####Optional
heading?: INotebookHeading
- options: { collapsed?: boolean; heading?: INotebookHeading }
Returns void
Protected
updateRunningStatus
- updateRunningStatus(headings: INotebookHeading[]): void
Returns void