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 IDs of all parts this renderer is managing
Return info on the available parts, for use in a palette.
Get a single part from the renderer.
The unique ID provided to this renderer in #renderModel
The widget to display, or null
Render a serialized model into a Phosphor widget.
The JSON model encountered in deserialization
Metadata that was included with this part definition
The ID that the framework is assigning to this widget
A valid widget
Serialize the part using a previously-given ID
The id of the part assigned by the framework
A [data, metadata] JSON tuple
Generated using TypeDoc
Generic interface for an external part renderer.
IExternalPartRenderer
Sometimes, it's inconvenient to force the use of parts wholesale. (For instance, it's nice to be able to stick
Markdown()
directly into a dashboard, instead of writing an inline PythonPart.). To support this use case without complicating the Dashboard API, consumers can supply some 'renderer' for these external parts that will handle rendering, construction (deserialization), and serialization.Note that external parts cannot utilize the rest of the Dashboard framework- Globals, bindings, etc. are completely off-limits. The idea is that external parts should be reasonably static and straight-forward.