Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NotebookEdit

A notebook edit represents edits that should be applied to the contents of a notebook.

Hierarchy

  • NotebookEdit

Index

Methods(5)

Static replaceCells

Static insertCells

Static deleteCells

Static updateCellMetadata

  • updateCellMetadata(index: number, newCellMetadata: {}): NotebookEdit
  • Utility to create an edit that update a cell's metadata.

    Parameters

    • index: number

      The index of the cell to update.

    • newCellMetadata: {}

      The new metadata for the cell.

      • [key: string]: any

    Returns NotebookEdit

Static updateNotebookMetadata

  • updateNotebookMetadata(newNotebookMetadata: {}): NotebookEdit
  • Utility to create an edit that updates the notebook's metadata.

    Parameters

    • newNotebookMetadata: {}

      The new metadata for the notebook.

      • [key: string]: any

    Returns NotebookEdit

Constructors(1)

constructor

Properties(4)

range

Range of the cells being edited. May be empty.

newCells

newCells: NotebookCellData[]

New cells being inserted. May be empty.

Optional newCellMetadata

newCellMetadata: {}

Optional new metadata for the cells.

Type declaration

  • [key: string]: any

Optional newNotebookMetadata

newNotebookMetadata: {}

Optional new metadata for the notebook.

Type declaration

  • [key: string]: any

Generated by TypeDoc. Maintained by 洛竹