Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelFactory

The default implementation of an IModelFactory.

Hierarchy

  • ModelFactory

Index

Constructors

constructor

Properties

codeCellContentFactory

codeCellContentFactory: IContentFactory

The factory for output area models.

Methods

createCodeCell

  • createCodeCell(options: IOptions): ICodeCellModel
  • Create a new code cell.

    Parameters

    • options: IOptions

    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.

createRawCell

  • createRawCell(options: IOptions): IRawCellModel
  • Create a new raw cell.

    Parameters

    • options: IOptions

    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