Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CellModel

An implementation of the cell model.

Hierarchy

  • CellModel

Implements

Index

Constructors

constructor

Properties

Private _cursors

_cursors: object

Type declaration

Private _metadata

_metadata: object

Type declaration

  • [key: string]: any

Private _source

_source: string

type

type: CellType

The type of cell.

Accessors

contentChanged

isDisposed

  • get (): boolean
  • Get whether the model is disposed.

    Notes

    This is a read-only property.

    Returns boolean

metadataChanged

source

  • get (): string
  • set (newValue: string): void

stateChanged

Methods

dispose

  • dispose(): void

getMetadata

  • Get a metadata cursor for the cell.

    Notes

    Metadata associated with the nbformat spec are set directly on the model. This method is used to interact with a namespaced set of metadata on the cell.

    Parameters

    • name: string

    Returns IMetadataCursor

listMetadata

  • listMetadata(): string[]
  • List the metadata namespace keys for the notebook.

    Notes

    Metadata associated with the nbformat are not included.

    Returns string[]

Protected setCursorData

  • setCursorData(name: string, newValue: any): void
  • Set the cursor data for a given field.

    Parameters

    • name: string
    • newValue: any

    Returns void

toJSON

Generated using TypeDoc