Closed pirhoo closed 1 year ago
This PR aims at letting plugin define their own widgets (https://github.com/ICIJ/datashare/issues/1148).
The new API can be used as follow (using the same registerWidget method):
registerWidget
core.registerWidget({ name: 'test', type(WidgetEmpty) { return class WidgetTest extends WidgetEmpty { get component() { return { name: 'WidgetTest', template: '<div>WidgetTest</div>' } } } } })
PR description
This PR aims at letting plugin define their own widgets (https://github.com/ICIJ/datashare/issues/1148).
API
The new API can be used as follow (using the same
registerWidget
method):