The client session object associated with the context.
The url resolver for the context.
The current contents model associated with the document.
The contents model will be null until the context is populated.
It will have an empty contents
field.
A signal emitted when the context is disposed.
Get the model factory name.
This is not part of the IContext
API.
A signal emitted when the model is saved or reverted.
Test whether the context is disposed.
Whether the context is ready.
The current local path associated with the document. If the document is in the default notebook file browser, this is the same as the path.
Get the model associated with the document.
The current path associated with the document.
A signal emitted when the path changes.
A promise that is fulfilled when the context is ready.
A signal emitted on the start and end of a saving operation.
Finish a saveAs operation given a new path.
Handle a save/load error with a dialog.
Add a checkpoint the file is writable.
Handle a time conflict.
Save a file, dealing with conflicts.
Handle a change on the contents manager.
Handle a change to a session property.
Handle an initial population.
Revert the document contents to disk contents.
call the model's initialization function after deserializing the content.
Save the document contents to disk.
Handle a time conflict.
Update our contents model, without the content.
Add a sibling widget to the document manager.
The widget to add to the document manager.
The desired options for adding the sibling.
A disposable used to remove the sibling if desired.
It is assumed that the widget has the same model and context as the original widget.
Create a checkpoint for the file.
Delete a checkpoint for the file.
Dispose of the resources held by the context.
Initialize the context.
Whether it is a new file.
a promise that resolves upon initialization.
List available checkpoints for a file.
Restore the file to a known checkpoint state.
Revert the document contents to disk contents.
Save the document contents to disk.
Save the document to a different path chosen by the user.
Generated using TypeDoc
An implementation of a document context. A namespace for
Context
statics.This class is typically instantiated by the document manager.