Section forms — Adding an Accordion layout
Use the Accordion layout to stack other layouts vertically. The stacked layout is expandable, which saves screen space and helps you arrange information into orderly chunks.
Add an accordion smart layout
Create an accordion layout:
- From the Layout control group, select the Accordion layout.
- Drag and drop the control onto the form.
The Accordion layout appears in a wireframe on the form.
Create an accordion group:
- Select the Accordion layout and drag it onto a top or bottom accordion border.
To delete an accordion layout, select the layout and click the Delete Row button. Do not use the Delete Cell button for this action.
Specify the dynamic layout properties
- Select the layout wireframe to make it active, and then click the View properties icon at the top-level header. Each Accordion within a group represents a new layout and has its own properties panel.
- Select the Accordion that you want to modify. Each accordion is numbered and its value appears in the header; the number changes to match the tab you selected.
Field | Description |
---|---|
Layout format | Select a layout format for the dynamic layout:
Select Other to select from additional dynamic layout formats defined in the skin. You can create and modify dynamic layout formats in the skin. |
Container format | Select a format for the accordion container. You can create and modify accordion formats in the skin. |
Visibility | To control the visibility of the container, select one of the following options:
If this section is to become part of navigation in a composite portal, you can make the header visible only when a specific space is the current space. Enter an expression here similar to the following: Then select the Run
visibility condition on client check box. |
Container Settings | |
Title | Optional. Type text to display in the accordion header or subheader. This text
may include directives or JSP tags, such as <p:r > or <pega:lookup
>. When you plan to localize the application using this rule, so the application can support users in various languages or locales, choose the text carefully and limit the length to no more than 64 characters. When practical, choose a caption already included in a language pack, to simplify later localization. A field value rule with this text as the final key part is needed for each locale. See About the Localization wizard. |
Include icon with title | Select if you want to include an icon in the title bar. |
Icon | Optional. Click the Show Image Viewer icon to open the Image Library landing page and select an image to include on the left side of the header. |
Icon title | If you want to display a tooltip when the user hovers the mouse pointer over the icon, type a text string within quotations, for example, "Select to view list". |
Body visibility | To determine visibility, select one of the following options:
As a best practice, use the Condition Builder to edit this field. See Using the Condition Builder to configure dynamic UI actions. |
Defer load contents | Optional. Choose this option to delay loading at runtime of the section content
until the user clicks the header. Deferring enables users to start using other parts
of the page rather than waiting for this section to load. To enable users to take actions, such as submit, on a work item while other content is still being loaded, configure sections to use defer loaded asynchronous declare pages. See Pega Community How to configure non-blocking UI using Asynchronous Declare Pages (ADP). |
Specify a pre-loading activity | Optional. If Defer Load? is selected, you can specify an activity to be run when the container is expanded by a click. This activity can compute property values and other aspects of the expanded container. As a best practice, create a defer loaded wrapper section with the retrieval activity (instead of having multiple defer loaded sections with wrapper activities.) |