Widget Libraries & Widgets
Widgets are predefined UI components, once defined can be used across many templates. Widgets are organized in libraries that are defined by admin. Admin can give access to libraries based on end-user’s roles. While creating the template for a specific ItemType or dashboard, admin can select a collection control or the report and add it to the library.
All collection controls and report controls added to the layout, will show the action of ‘Add Widget to Library’ under control dropdown menu. Selecting the action will show the flyout ‘Add Widget to Library’. In the flyout, you can select one of the admins defined libraries, give unique name to the widget, select type as Standard or Custom. Standard widget from the library can be added to the template only by-reference. Custom widget from the library can be added to the template either by-copy or by-reference.
Adding a widget from library to the template can be done using Widget control from the toolbox. Widget can be added to template by-copy or by-reference by selecting appropriate option from ‘Widget Settings’ flyout. Adding widget by-copy, will copy the definition of the Widget to the template. Any subsequent updates done on the widget in the library will not reflect in the template if the widget is added by copy. By adding widget by-reference, the latest widget will always show based on its updates in the library.