The default implementation of a document model.

Hierarchy (view full)

Implements

Constructors

Properties

_collaborationEnabled: boolean
_contentChanged: Signal<DocumentModel, void> = ...
_defaultLang: string = ''
_dirty: boolean = false
_readOnly: boolean = false
_stateChanged: Signal<DocumentModel, IChangedArgs<any, any, string>> = ...
sharedModel: ISharedFile

The shared notebook model.

standaloneModel: boolean

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

Accessors

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

    Returns boolean

  • 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>>

Methods

  • Dispose of the resources used by the model.

    Returns void