Options
All
  • Public
  • Public/Protected
  • All
Menu

The default implementation of a document model.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _contentChanged

_contentChanged: Signal<this, void> = new Signal<this, void>(this)

Private _defaultLang

_defaultLang: string = ""

Private _dirty

_dirty: boolean = false

Private _readOnly

_readOnly: boolean = false

Private _stateChanged

_stateChanged: Signal<this, IChangedArgs<any>> = new Signal<this, IChangedArgs<any>>(this)

modelDB

modelDB: IModelDB

The underlying IModelDB instance in which model data is stored.

Accessors

contentChanged

  • get contentChanged(): ISignal<this, void>

defaultKernelLanguage

  • get defaultKernelLanguage(): string

defaultKernelName

  • get defaultKernelName(): string

dirty

  • get dirty(): boolean
  • set dirty(newValue: boolean): void

isDisposed

  • get isDisposed(): boolean

mimeType

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

mimeTypeChanged

  • get mimeTypeChanged(): ISignal<this, IChangedArgs<string>>

readOnly

  • get readOnly(): boolean
  • set readOnly(newValue: boolean): void

selections

stateChanged

value

Methods

dispose

  • dispose(): void

fromJSON

  • fromJSON(value: JSONValue): void
  • Deserialize the model from JSON.

    Notes

    Should emit a [contentChanged] signal.

    Parameters

    • value: JSONValue

    Returns void

fromString

  • fromString(value: string): void

initialize

  • initialize(): void

toJSON

  • toJSON(): JSONValue

toString

  • toString(): string

Protected triggerContentChange

  • triggerContentChange(): void

Protected triggerStateChange

Generated using TypeDoc