Construct a new document model.
The underlying IModelDB
instance in which model
data is stored.
The shared notebook model.
A signal emitted when the document content changes.
The dirty state of the document.
The dirty state of the document.
Whether the model is disposed.
A mime type of the model.
A mime type of the model.
A signal emitted when a mimetype changes.
The read only state of the document.
The read only state of the document.
Get the selections for the model.
A signal emitted when the shared model was switched.
A signal emitted when the document state changes.
Get the value of the model.
We update the modeldb store when the shared model changes. To ensure that we don't run into infinite loops, we wrap this call in a "mutex". The "mutex" ensures that the wrapped code can only be executed by either the sharedModelChanged handler or the modelDB change handler.
Dispose of the resources used by the model.
Initialize the model with its current state.
When we initialize a cell model, we create a standalone model that cannot be shared in a YNotebook. Call this function to re-initialize the local representation based on a fresh shared model (e.g. models.YFile or models.YCodeCell).
Whether to reinitialize the shared model.
Serialize the model to JSON.
Serialize the model to a string.
Trigger a content changed signal.
Trigger a state change signal.
Generated using TypeDoc
The default implementation of a document model.