Class AttachmentsCellModelAbstract

A base implementation for cell models with attachments.

Hierarchy

Constructors

Properties

_attachments: any
_onAttachmentsChange: any

Handle a change to the cell outputs modelDB and reflect it in the shared model.

_onSharedModelChanged: any

Handle a change to the code cell value.

contentChanged: Signal<AttachmentsCellModel, void>

A signal emitted when the state of the model changes.

sharedModel: ISharedCell

The cell shared model.

standaloneModel: boolean

Whether the model should disposed the shared model on disposal or not.

stateChanged: Signal<AttachmentsCellModel, IChangedArgs<any, any, "trusted" | "isDirty" | "executionCount">>

A signal emitted when a model state changes.

Accessors

  • get id(): string
  • The id for the cell.

    Returns string

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

    Returns boolean

  • get metadata(): Omit<IBaseCellMetadata, "trusted">
  • The metadata associated with the cell.

    Returns Omit<IBaseCellMetadata, "trusted">

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

    Returns string

  • set mimeType(newValue): void
  • A mime type of the model.

    Notes

    It is never null, the default mime type is text/plain.

    Parameters

    • newValue: string

    Returns void

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

    Returns ISignal<this, IChangedArgs<string, string, string>>

  • get selections(): IObservableMap<ITextSelection[]>
  • Get the selections for the model.

    Returns IObservableMap<ITextSelection[]>

  • get trusted(): boolean
  • The trusted state of the model.

    Returns boolean

  • set trusted(newValue): void
  • Whether the cell is trusted.

    Parameters

    • newValue: boolean

    Returns void

  • get type(): string
  • The type of cell.

    Returns string

Methods

  • Delete a metadata

    Parameters

    • key: string

      Metadata key

    Returns any

  • Dispose of the resources held by the model.

    Returns void

  • Get a metadata

    Notes

    This returns a copy of the key value.

    Parameters

    • key: string

      Metadata key

    Returns any

  • Handle a change to the observable value.

    Returns void

  • Set a metadata

    Parameters

    • key: string

      Metadata key

    • value: any

      Metadata value

    Returns void

Generated using TypeDoc