Skip to main content

Template widget

A template widget allows you to display custom HTML. You can use a template widget to display:

  • Static text, such as headings, instructions on using particular widgets, or information about your application.
  • Images, such as a banner image or carousel of images.
  • Video, which can be configured to play automatically or display media controls.
  • Buttons that link to other pages within your application or to content outside your application.
  • A page footer with static text and links to key pages.
  • Custom functionality that is not available from the standard widgets or as a plugin. For example, you may want to display a progress bar or infographic populated with data from either the current case or a case that the user has selected from a grid or tile widget.
    To add custom functionality that requires JavaScript, such as an interactive map or chart, use a plugin.

Configure the template from the Template Widget properties pane. You can construct the template using plain text or use HTML to customize the layout and include visual elements such as buttons and images.

To use a saved template, add the template. function and then select the saved template. You can use template parameters to adapt a saved template to different use cases.

For more information about using template functions and creating saved templates, see Templates.

You can configure a template to use a case selected in a grid or tile widget for context. When configuring the template widget, select the relevant grid or tile widget from the Master widget list.

Tip:

To display details of multiple cases identified by a dataset, such as a table with a custom layout, a series of person profiles, or a catalog of products, use a tile widget.