Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttachmentsCellModel

A base implementation for cell models with attachments.

Hierarchy

Index

Constructors

constructor

Properties

Private _attachments

_attachments: any

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(): nbformat.CellType
  • The type of cell.

    Returns nbformat.CellType

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
  • Handle a change to the observable value.

    Returns void

onTrustedChanged

toJSON

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

    Returns nbformat.IRawCell | nbformat.IMarkdownCell

Generated using TypeDoc