Creating a custom widget
Help your users to quickly access additional information by defining a custom widget. Widgets work best in situations where the data they present needs to be accessed at all stages of the case, but does not require complex analysis.
For more information about out-of-the-box widgets, see Widgets in the utilities pane.
- Create a new section:
- In the header of Dev Studio, click .
- On the Create Section tab, specify the label,
context, class, and ruleset for the design template, and then click
Create and open.A new section opens in templated mode.
- Convert the templated section into a widget:
- In the section editor header, click Convert to full section editor, and then confirm the conversion.
- On the Settings tab, convert your section to a widget by clicking Workarea widget.
- On the Design tab, define the structure and content of
your widget:
- To add a layout, from the Structural list, drag layouts into your widget.
- To add a control, expand the list that represents the type of control that you want to add, and then drag the control to the work area.
For more information on configuring controls, see UI components in a view. - Select the dynamic layout that hosts your widget, and then click the View properties icon.
- In the Dynamic layout properties dialog box, on the
General tab, define the appearance of your
widget:
- In the Container format list, select Other.
- In the list that appears to the right of the Container format field, select Utility.
- Select the Display header and title checkbox.
- In the Container settings section, select the Include icon or value checkbox.
- In the Icon or value type list, select Standard icon.
- In the Icon field, enter the location of the icon.
- On the Presentation tab, define additional CSS for your
widget:
- Select the Display advanced presentation options checkbox.
- In the Header CSS class field, enter flex-header utility.
- Click Submit.
- Optional: To add a badge that displays the number of assets in the widget when the widget
is collapsed, perform the following actions:
- From the Data display list, drag a Text control to your widget.
- Select the newly added Text control, and then click the View properties icon.
- On the Presentation tab, in the Advanced presentation options section, in the Cell read-write classes field, enter utils-badge.
- In the Cell read-only classes field, enter utils-badge.
- Click Submit.
- In the section definition, click Save.
Previous topic Custom widgets Next topic Referencing data