Widgets
Last updated
Last updated
Widgets enable the presentation of case-specific data, either from the case's own data objects or from external data sources. This approach standardizes the display of case data across all cases and eliminates the need for knowledge of Form.io or HTML to present case data effectively.
Widget configuration is part of tab configuration for a case definition.
Go to the Admin
menu
Go to the Cases
menu and select the case to configure widgets for
Select the Tabs
tab
The list of configured tabs for a case is displayed within the case settings. To configure widgets, select an existing tab with its type set to Widgets, or add a new widget-type tab to the configuration by clicking the Add tab button as documented here. Upon selection, the widget configuration for the chosen tab will open, displaying a list of widgets created for that tab.
Click Add widget to open the create new widget modal that will guide the widget creation in 4 steps.
Five types of widgets are currently supported:
Fields &#xNAN;A set of single data elements in a widget.
Custom component &#xNAN;An option to direct to a custom Angular component in de codebase.
Form.io form &#xNAN;This type makes is possible to display a Form.io form within a widget. The form is prefilled with case data.
Table &#xNAN;Present array case data in a table within a widget.
Collection &#xNAN;Present array case data in a collection of cards within a widget.
Widgets for a case can also be configured directly through a JSON editor. For process engineers, configuring widgets in JSON may offer greater control and efficiency. In the second tab of the Widget configuration UI, a JSON editor displays the complete widget configuration in JSON format. This editor includes error-checking functionality to ensure the JSON structure is correct.
Access to the case widgets can be configured through access control. More information about access control can be found here.
com.ritense.case_.domain.tab.CaseWidgetTabWidget
view
Allows viewing a case widget
See below screenshot for the presentation result of a collection. 6 files where uploaded for this example so 3 pages of each 2 cards are shown in the widget.