Readonly
comm_Private
elProtected
_loadProtected
_loadCreates a promise for a view of a given model
The implementation must trigger the Lumino 'after-attach' and 'after-show' events when appropriate, which in turn will trigger the view's 'displayed' events.
Make sure the view creation is not out of order with any state updates.
Optional
options: anyOptional
options: anyProtected
filterGet a promise for a model by model id.
If the model is not found, the returned Promise object is rejected.
If you would like to synchronously test if a model exists, use .has_model().
Asynchronously get the state of the widget manager.
This includes all of the widget models, and follows the format given in the @jupyter-widgets/schema package.
Promise for a state dictionary
Optional
options: IStateOptionsThe options for what state to return.
Returns true if the given model is registered, otherwise false.
This is a synchronous way to check if a model is registered.
Protected
loadProtected
loadCreate and return a promise for a new widget model
widget_manager.new_model({
model_name: 'IntSlider',
model_module: '@jupyter-widgets/controls',
model_module_version: '1.0.0',
model_id: 'u-u-i-d'
}).then((model) => { console.log('Create success!', model); },
(err) => {console.error(err)});
the options for creating the model.
Optional
serialized_state: anyattribute values for the model.
Create a comm and new widget model.
same options as new_model but comm is not required and additional options are available.
Optional
serialized_state: JSONObjectserialized model attributes.
Set the widget manager state.
a Javascript object conforming to the application/vnd.jupyter.widget-state+json spec.
Reconstructs all of the widget models in the state, merges that with the current manager state, and then attempts to redisplay the widgets in the state.
Generated using TypeDoc
The comm target name to register