Construct a new cell with optional attachments.
A signal emitted when the state of the model changes.
The underlying IModelDB
instance in which model
data is stored.
A signal emitted when a model state changes.
Get the attachments of the model.
The id for the cell.
Whether the model is disposed.
The metadata associated with the cell.
A mime type of the model.
A mime type of the model.
A signal emitted when a mimetype changes.
Get the selections for the model.
A signal emitted when the shared model was switched.
Get the trusted state of the model.
Set the trusted state of the model.
The type of the cell.
Get the value of the model.
Handle a change to the cell shared model and reflect it in modelDB. We update the modeldb metadata when the shared model changes.
This method overrides the CodeEditor protected _onSharedModelChanged so we first call super._onSharedModelChanged
Dispose of the resources used by the model.
Handle a change to the observable value.
Handle a change to the cell metadata modelDB and reflect it in the shared model.
Handle a change to the trusted state.
The default implementation is a no-op.
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.
Generated using TypeDoc
An implementation of a raw cell model.