IModel | @jupyterlab (original) (raw)
An editor model.
Hierarchy (View Summary)
- IDisposable
- IModel
* ICellModel
* ICodeModel
- IModel
Implemented by
Index
Properties
Readonly
isDisposed
isDisposed: boolean
Test whether the object has been disposed.
Notes
This property is always safe to access.
mimeType
mimeType: string
A mime type of the model.
Notes
It is never null
, the default mime type is text/plain
.
mimeTypeChanged
A signal emitted when a property changes.
Readonly
selections
The currently selected code.
Readonly
sharedModel
The shared model for the cell editor.
Methods
dispose
- dispose(): void
- Dispose of the resources held by the object.
Notes
If the object's dispose
method is called more than once, all calls made after the first will be a no-op.
Undefined Behavior
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.