Protected
Readonly
editorReadonly
idThe factory id.
Protected
Readonly
labelProtected
Readonly
selectionStatic
IDProtected
constructProtected
createOptional
options: NavigatableWidgetOptionsCreates a widget using the given options.
factory specific information as serializable JSON data.
the newly created widget or a promise of the widget
Static
createOptional
counter: number
A WidgetFactory is used to create new widgets. Factory-specific information (options) can be passed as serializable JSON data. The common WidgetManager collects
WidgetFactory
contributions and delegates to the corresponding factory when a widget should be created or restored. To identify widgets theWidgetManager
uses a description composed of the factory id and the options. TheWidgetFactory
does support both, synchronous and asynchronous widget creation.Example usage