Options
All
  • Public
  • Public/Protected
  • All
Menu

The default implementation of an IContentFactory.

Hierarchy

  • ContentFactory

Index

Constructors

constructor

  • Create a new cell model factory.

    Parameters

    Returns ContentFactory

Properties

Readonly codeCellContentFactory

codeCellContentFactory: IContentFactory

The factory for code cell content.

Readonly modelDB

modelDB: IModelDB

The IModelDB in which to put the notebook data.

Methods

clone

  • Clone the content factory with a new IModelDB.

    Parameters

    Returns ContentFactory

createCell

  • Create a new cell by cell type.

    Parameters

    Returns ICellModel

createCodeCell

  • Create a new code cell.

    Parameters

    Returns ICodeCellModel

    A new code cell. If a source cell is provided, the new cell will be initialized with the data from the source. If the contentFactory is not provided, the instance codeCellContentFactory will be used.

createMarkdownCell

  • Create a new markdown cell.

    Parameters

    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

    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