The document context object.
The current contents model associated with the document
The contents model will be null until the context is ready.
It will have an empty
A signal emitted when the context is disposed.
A signal emitted when the contentsModel changes.
Test whether the object has been disposed.
This property is always safe to access.
Whether the context is ready.
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.
The client session object associated with the context.
Add a sibling widget to the document manager.
The widget to add to the document manager.
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.
A promise which resolves with the new checkpoint model when the checkpoint is created.
Delete a checkpoint for the file.
The id of the checkpoint to delete.
A promise which resolves when the checkpoint is deleted.
Dispose of the resources held by the object.
If the object's
dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Get the download url of a given absolute server path.
List available checkpoints for the file.
A promise which resolves with a list of checkpoint models for the file.
Resolve a relative url to a correct server path.
Restore the file to a known checkpoint state.
The optional id of the checkpoint to restore, defaults to the most recent checkpoint.
A promise which resolves when the checkpoint is restored.
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