You are here: User interface > Modal dialog box templates

 

Modal dialog box templates

Pega 7 Platform provides templates for creating modal dialog boxes. These templates help the designers model business process flow. The following standard modal dialog box templates are available:

You can create customized modal dialog box templates by overriding the templates.

Customizing modal dialogs

You can specify the color, corner shapes, and other settings of modal dialogs in the skin. See Skin form — Components tab — General — Modal dialogs. You can also create custom formats for modal dialogs. See PDN article Displaying a modal dialog in a custom format created in the application skin.

Styles that you set in the modal dialog format in the skin are applied to the following modal dialog templates:

You can modify these templates, for example, to replace the OK and Cancel buttons. Buttons in the modal dialog are styled using the settings in the Standard Button format in the skin.

You can modify a template to match the requirements of your application or your user community:

  1. In the Designer studio search field, enter the modal dialog template name(example pzGridModalTemplate).
  2. In the results list, click the template name.
  3. In the Label field in the Section Record Configuration pane, enter a description for the template.
  4. In the Context pane, select the branch from the Development branch menu.
  5. For the Apply to field, select the class where the template will be used from the dropdown menu.
  6. For the Add to Ruleset field, select the ruleset from the dropdown menu.
  7. Click Create and open

The figure is a screenshot showing the steps for creating a custom modal dialog template

The implementation and CSS classes for modal dialogs differ, depending upon whether the application is rendered in HTML5 document type - standards mode or in quirks mode. For example, in HTML5 document type – standards mode, modal dialogs honor the design time width of the layout, while, in quirks mode, modal dialogs shrink to the minimum width and height possible. Drag and drop is not supported in modal dialogs rendered in standards mode. If your application contains modal dialogs and is rendered in both standards and quirks modes, generate test cases for each.

PDN Resources

See How to present a flow action as a modal dialog and Displaying a modal dialog in a custom format created in the application skin on the PDN.

 

Definitions flow action, skin rule
Related topics About Sections
About Flow Actions

UpUser Interface category