Managing Widgets
The Widget Store in the Dashboard Portal contains all the widgets are shipped with WSO2 SP by default, generated by you via the Widget Designer, and created by you as custom widgets as shown below.
To access the Widget Store, click Widgets in the top panel from the home page of the Dashboard Portal.
Editing widgets
In WSO2 Stream Processor, widgets are treated as React components, and they are available as compiled, minified codes. Therefore, the source code of widgets is not human-readable. Due to this, they cannot be edited manually. To edit an existing widget, we need to get the source code, edit it and compiled again.
Editing widgets by editing the source code is not recommended because all the generated widgets are served by one central code base. Editing this code affects all the widgets, and this may cause errors when updating the product pack via WUM
Deleting widgets
To delete a widget, open the Widget Store. Search for the widget you need to delete. Once you find it, click the delete icon for it.
Currently, you can only delete generated widgets from the Widget Store.
You can also delete an existing widget via the following API.
DELETE https://localhost:9643/portal/apis/widgets/{id}