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

Static methods

staticdeleteCells(range:NotebookRange):NotebookEdit

Utility to create an edit that deletes cells in a notebook.

Parameters:

range

The range of cells to delete.

staticinsertCells(index:Int, newCells:Array<NotebookCellData>):NotebookEdit

Utility to create an edit that replaces cells in a notebook.

Parameters:

index

The index to insert cells at.

newCells

The new notebook cells.

staticreplaceCells(range:NotebookRange, newCells:Array<NotebookCellData>):NotebookEdit

Utility to create a edit that replaces cells in a notebook.

Parameters:

range

The range of cells to replace

newCells

The new notebook cells.

staticupdateCellMetadata(index:Int, newCellMetadata:DynamicAccess<Any>):NotebookEdit

Utility to create an edit that update a cell's metadata.

Parameters:

index

The index of the cell to update.

newCellMetadata

The new metadata for the cell.

staticupdateNotebookMetadata(newNotebookMetadata:DynamicAccess<Any>):NotebookEdit

Utility to create an edit that updates the notebook's metadata.

Parameters:

newNotebookMetadata

The new metadata for the notebook.

Constructor

new(range:NotebookRange, newCells:Array<NotebookCellData>)

Create a new notebook edit.

Parameters:

range

A notebook range.

newCells

An array of new cell data.

Variables

newCellMetadata:Null<DynamicAccess<Any>>

Optional new metadata for the cells.

newCells:Array<NotebookCellData>

New cells being inserted. May be empty.

newNotebookMetadata:Null<DynamicAccess<Any>>

Optional new metadata for the notebook.

range:NotebookRange

Range of the cells being edited. May be empty.