An implementation of a document context.

This class is typically instantiated by the document manager.

Type Parameters

Implements

Constructors

Properties

_conflictModalIsOpen: boolean = false
_contentsModel: null | Omit<Contents.IModel, "content"> = null
_dialogs: IDialogs
_disposed: Signal<Context<T>, void> = ...
_fileChanged: Signal<Context<T>, Omit<Contents.IModel, "content">> = ...
_isDisposed: boolean = false
_isPopulated: boolean = false
_isReady: boolean = false
_lastModifiedCheckMargin: number = 500
_lineEnding: null | string = null
_model: T
_opener: ((widget, options?) => void)

Type declaration

    • (widget, options?): void
    • Parameters

      Returns void

_path: string = ''
_pathChanged: Signal<Context<T>, string> = ...
_populatedPromise: PromiseDelegate<void> = ...
_readyPromise: Promise<void>
sessionContext: SessionContext

The client session object associated with the context.

translator: ITranslator
urlResolver: IRenderMime.IResolver

The url resolver for the context.

Accessors

Methods

  • Revert the document contents to disk contents.

    Parameters

    • initializeModel: boolean = false

      call the model's initialization function after deserializing the content.

    Returns Promise<void>