Interface NotebookDocumentChangeEvent

An event describing a transactional notebook change.

interface NotebookDocumentChangeEvent {
    cellChanges: readonly NotebookDocumentCellChange[];
    contentChanges: readonly NotebookDocumentContentChange[];
    metadata: undefined | {
        [key: string]: any;
    };
    notebook: NotebookDocument;
}

Properties

cellChanges: readonly NotebookDocumentCellChange[]

An array of cell changes.

contentChanges: readonly NotebookDocumentContentChange[]

An array of content changes describing added or removed cells.

metadata: undefined | {
    [key: string]: any;
}

The new metadata of the notebook or undefined when it did not change.

Type declaration

  • [key: string]: any

The affected notebook.