The options used to initialize a context.

interface IOptions<T extends DocumentRegistry.IModel> {
    contentProviderId?: string;
    factory: DocumentRegistry.IModelFactory<T, ISharedDocument>;
    kernelPreference?: IKernelPreference;
    lastModifiedCheckMargin?: number;
    manager: ServiceManager.IManager;
    opener?: (widget: Widget) => void;
    path: string;
    sessionDialogs?: IDialogs;
    setBusy?: () => IDisposable;
    translator?: ITranslator;
    urlResolverFactory?: IUrlResolverFactory;
}

Type Parameters

Properties

contentProviderId?: string

Identifier of the content provider used for file operations.

The model factory used to create the model.

kernelPreference?: IKernelPreference

The kernel preference associated with the context.

lastModifiedCheckMargin?: number

Max acceptable difference, in milliseconds, between last modified timestamps on disk and client.

A service manager instance.

opener?: (widget: Widget) => void

An optional callback for opening sibling widgets.

path: string

The initial path of the file.

sessionDialogs?: IDialogs

The dialogs used for the session context.

setBusy?: () => IDisposable

A function to call when the kernel is busy.

translator?: ITranslator

The application language translator.

urlResolverFactory?: IUrlResolverFactory

A factory for the URL resolver.