Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MarkdownCellModel

An implementation of a markdown cell model.

Hierarchy

Index

Constructors

constructor

Properties

Readonly contentChanged

contentChanged: Signal<this, void>

A signal emitted when the state of the model changes.

Readonly id

id: string

The id for the cell.

Readonly modelDB

modelDB: IModelDB

The underlying IModelDB instance in which model data is stored.

Readonly stateChanged

stateChanged: Signal<this, IChangedArgs<any, any, string>>

A signal emitted when a model state changes.

Accessors

attachments

  • Get the attachments of the model.

    Returns IAttachmentsModel

isDisposed

  • get isDisposed(): boolean
  • Whether the model is disposed.

    Returns boolean

metadata

  • The metadata associated with the cell.

    Returns IObservableJSON

mimeType

  • get mimeType(): string
  • set mimeType(newValue: string): any
  • A mime type of the model.

    Returns string

  • A mime type of the model.

    Parameters

    • newValue: string

    Returns any

mimeTypeChanged

  • get mimeTypeChanged(): ISignal<this, IChangedArgs<string>>
  • A signal emitted when a mimetype changes.

    Returns ISignal<this, IChangedArgs<string>>

selections

  • Get the selections for the model.

    Returns IObservableMap<ITextSelection[]>

trusted

  • get trusted(): boolean
  • set trusted(newValue: boolean): any
  • Get the trusted state of the model.

    Returns boolean

  • Set the trusted state of the model.

    Parameters

    • newValue: boolean

    Returns any

type

  • get type(): "markdown"
  • The type of the cell.

    Returns "markdown"

value

  • Get the value of the model.

    Returns IObservableString

Methods

dispose

  • dispose(): void
  • Dispose of the resources used by the model.

    Returns void

Protected onGenericChange

  • onGenericChange(): void

onTrustedChanged

toJSON

  • toJSON(): nbformat.IMarkdownCell
  • Serialize the model to JSON.

    Returns nbformat.IMarkdownCell

Generated using TypeDoc