Options
All
  • Public
  • Public/Protected
  • All
Menu

A VDomModel for the current editor/mode combination.

Hierarchy

  • VDomModel
    • Model

Implements

  • IModel

Index

Properties

Private _editor

_editor: IEditor | null = null

Private _mode

_mode: string = ""

isDisposed

isDisposed: boolean

Test whether the model is disposed.

stateChanged

stateChanged: Signal<this, void>

A signal emitted when any model state changes.

Accessors

editor

  • get editor(): IEditor | null
  • set editor(editor: IEditor | null): void
  • The current editor for the application editor tracker.

    Returns IEditor | null

  • The current editor for the application editor tracker.

    Parameters

    • editor: IEditor | null

    Returns void

mode

  • get mode(): string
  • The current mode for the editor. If no editor is present, returns the empty string.

    Returns string

Methods

Private _onMIMETypeChange

  • _onMIMETypeChange(mode: IModel, change: IChangedArgs<string>): void
  • If the editor mode changes, update the model.

    Parameters

    • mode: IModel
    • change: IChangedArgs<string>

    Returns void

Private _triggerChange

  • _triggerChange(oldState: string, newState: string): void
  • Trigger a rerender of the model.

    Parameters

    • oldState: string
    • newState: string

    Returns void

dispose

  • dispose(): void
  • Dispose the model.

    Returns void

Generated using TypeDoc