Options
All
  • Public
  • Public/Protected
  • All
Menu

A factory for creating notebook model content.

Hierarchy

  • IContentFactory

Index

Properties

Readonly codeCellContentFactory

codeCellContentFactory: IContentFactory

The factory for output area models.

modelDB

modelDB: IModelDB

The IModelDB in which to put data for the notebook model.

Methods

clone

  • Clone the content factory with a new IModelDB.

    Parameters

    Returns IContentFactory

createCell

  • Create a new cell by cell type.

    Parameters

    Returns ICellModel

createCodeCell

  • Create a new code cell.

    Parameters

    • options: IOptions

      The options used to create the cell.

    Returns ICodeCellModel

    A new code cell. If a source cell is provided, the new cell will be initialized with the data from the source.

createMarkdownCell

  • Create a new markdown cell.

    Parameters

    • options: IOptions

      The options used to create the cell.

    Returns IMarkdownCellModel

    A new markdown cell. If a source cell is provided, the new cell will be initialized with the data from the source.

createRawCell

  • Create a new raw cell.

    Parameters

    • options: IOptions

      The options used to create the cell.

    Returns IRawCellModel

    A new raw cell. If a source cell is provided, the new cell will be initialized with the data from the source.

Generated using TypeDoc