Layouts structure the content within sections. Every section contains at least one layout. You can choose from the following layout types:
Configure styles for layouts using the skin.
Note: Dynamic and column layouts are available only to user interfaces rendered in HTML 5 document type (standards mode). As a best practice, use these layouts when rendering applications in HTML 5 document type (standards mode).
You can add a new layout or copy an existing layout. You can add a layout above or below an existing layout.
Copy an existing layout
To delete a layout, select the layout and click the Delete Row button, not the Delete Cell button.
On the Set layout type dialog, select one of the following layout types and then click OK.
Layout |
Description |
Dynamic layout |
See Adding a Dynamic layout for details. Available only to user interfaces rendered in HTML5 document type (standards mode). Select to create a dynamic layout. A dynamic layout is a DIV-based layout that allows for highly flexible display of content. Dynamic layouts separate content and presentation. You add content, such as properties, controls, and other sections, to a dynamic layout within a section. You set the presentation of that content using dynamic layout formats specified in the skin. Each dynamic layout format defines the placement of the content in the section, the position of label, alignment, spacing etc. Changing the format in the skin automatically affects all sections using that format. Dynamic layouts can be nested within other dynamic layouts. Dynamic layouts have responsive behaviors. Select a dynamic layout format in the dynamic layout properties panel within a section or harness. As a best practice, use the dynamic layout when rendering applications in HTML 5 document type (standards mode). |
Repeating |
Select to create a layout that can present values from a
Note: When displaying large amounts of data, the Grid, TreeGrid, and Tree layouts provide a display that, in most cases, is easier to implement and work with than repeating column or tabbed layouts. These layouts can display a custom skin; are cross-browser compatible; are sortable by column; and have fields that can be configured to be editable and localizable. See Skin form — Components tab — Layouts — Trees & grids. |
Column layout |
See Adding a Column Layout for details. Note: Available only to user interfaces rendered in HTML5 document type (standards mode). Select to create a column layout. Based on dynamic layout technology, column layouts provide the ability to display main content, such as a work item, alongside supporting content, such as an attachment. Column layouts separate content from presentation. You can add a column layout to a section and then add content, such as properties, controls, and other sections, to the column layout. Specify column layout formats in the skin. Changing the format in the skin automatically affects all sections using that format. See Skin form — Components tab — Layouts — Column layouts. Select a column layout format in the column layout properties panel in the harness or section. |
Freeform |
Select to create a freeform layout providing you with full control over the width and height of each cell. Specify the number of columns and rows you want to include in the freeform layout in the Cols and Rows fields. As a best practice, use the dynamic layout when rendering applications in HTML 5 document type (standards mode). |
Click the View propertiesicon to open the Layout Properties panel.
Field |
Description |
||||||||
Style format |
Choose |
||||||||
Container format |
Select a format for the Smart Layout container. You can create and modify formats in the skin. See Skin form — Components tab — Layouts — Smart layout. |
||||||||
Visibility |
To control the visibility of the header, select one of the following:
As a best practice, use the Condition Builder to edit this field. Click the Open condition builder icon to open the tool. See Using the Condition Builder to configure dynamic UI actions. Note: 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: pyCurrentSpace=="ASpaceName" Then select the Run visibility condition on client check box. |
||||||||
Run visibility condition on client |
Appears when you select Conditional Visibility and enter a simple expression in the field that displays. Select the Run visibility condition on client check box to cause dynamic execution of the condition each time the value of a property stated in the condition changes. |
||||||||
Allow changes to columns |
Optional. Selecting this check box converts this SmartLayout to a quasi-freeform layout. This gives you greater flexibility, enabling you to add and remove columns. Column restrictions remain in force, but you can change the type of any column, including the Row restrictions remain in force, but you can remove them if all columns have a If you Allow Changes to Columns, you cannot undo this change. See PDN article Using SmartLayout features — How to customize, use Merging Cells, and change Field Width. |
||||||||
Width |
Select whether the width of columns in the table are to be set as a percent or in absolute pixels. Choose:
Caution: If you choose px-fixed and a property value at runtime is wider than width defined by the pixel value, the value is truncated, and users are unable to see the full value. |
||||||||
Display header and title |
Select if you want to include a header. |
||||||||
Container Settings | |||||||||
Title |
Optional. Enter a text description, property reference, or field value to provide a title for the layout. Text titles may include directives or JSP tags, such as <p:r> or <pega:lookup>. Note: When you plan to localize the application using this rule, 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. |
||||||||
Heading level | Select a heading level from the drop-down menu. The container heading level generates semantic markup and makes the UI structurally understandable for assistive technology users. Heading level is available for all components that display headers. | ||||||||
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 |
Optional. Leave blank so that the body is always visible. To control visibility of the body, enter or select one of the following:
As a best practice, use the Condition Builder to edit this field. Click the Open condition builder icon to open the tool. See Using the Condition Builder to configure dynamic UI actions. |
||||||||
Run visibility condition on client |
Appears when you select Conditional Visibility and enter a simple expression in the field that displays. Select the Run visibility condition on client check box to cause dynamic execution of the condition each time the value of a property stated in the condition changes. Conditions are automatically re-evaluated when the user updates a property value. By default, controls that allow typing, such as Text Input, are evaluated when the user leaves the field. To re-evaluate conditions as the user types, use the Apply Conditions action with a Keyboard event. See Control Form — Completing the Control tab. |
||||||||
Header type |
Select one of the following header types. This field does not appear if the Format value is
|
||||||||
Defer load contents |
Appears when you select a Select to delay loading the section content at runtime 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 PDN How to configure non-blocking UI using Asynchronous Declare Pages (ADP). |
||||||||
Specify a pre-loading activity |
Appears when you select a 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.) |
Use the cell controls to add rows and columns, delete rows or columns, or merge cells.
In most cases, select an object in the layout before clicking an icon. Certain operations may be unavailable depending on your selection and the layout characteristics.
Control |
Description |
Delete the contents of a single cell (not a row or column) |
|
Insert a new row before (above) the selected row |
|
Insert a new row after (below) the selected row |
|
Delete the selected row or layout |
|
Merge right — Combine the selected cell and the cell to the right. |
|
Merge down — Combine the selected cell and the cell below it. |
|
Unmerge All — Undo the previous merges. |
The Insert column before, Insert column after, and Delete column operations are not available for Smart layout columns. They are available in freeform layouts.
Ctrl
key. Release the Ctrl
key to drop a duplicate row or column.SHIFT
key, select the cell, drag and drop it in another cell, in the same one layout or another layout.