Managing Settings for Fluid Page Controls

This topic provides an overview and discusses common page control properties for fluid pages.

A basic input page control consists of two items:

  • The control.

  • The label.

The system considers the control and the label pairing as a single unit and presents them within a single container in the HTML—ps_box-<control_type>.

For example, in the case of an edit box, the system generated this structure in the HTML.

Image: HTML for fluid page controls

This example illustrates the appearance of the HTML used to display a page control.

Example of HTML for a fluid page showing label and control

The system generates default styles, which are styled through the style sheets. Applications can override or extend style by adding additional styles or replacing the top-level system default style. In the case of the example above, the application change chose to override the PeopleTools-provided style and it would remove the ps_box-edit class only in favor of the specified class from the application definition.

For any control that you can add to a page, such as a group box, an image, a grid, and so on, there is a Fluid tab on the properties dialog box for that control. All of the controls share some properties, while others have additional properties that apply only to the function of that control.

Note: The options documented below apply to all fluid page controls. Depending on the control selected for the page, additional properties may appear. Properties specific to an individual control type are documented within a section devoted to that control type.

Image: Common Fluid tab Options

This example illustrates the common page control options available for on the Fluid tab of the Properties dialog box for the control. Descriptions of the options follow the example.

Common Fluid tab options for page controls

Field or Control

Definition

Style Classes

Enter the application-specific style classes to apply to extend the default system-specific styles (PeopleTools styles applied by default). Separate multiple style classes with a space.

Form Factor Style Class Override

Use to override any application-specific styles based on the form factor (device size) of the device accessing the page. Form factors are represented in these ranges:

  • Small: Applies to most smartphones.

  • Medium: Applies to 7-inch tablets.

  • Large: Applies to 10-inch tablets and laptops.

  • Extra Large: Applies to large monitors.

For example, assume that the application-specific Style Classes field contains the style, psc_margin-bottom05em, which you intend to apply to all form factors except for the small form factor. In this case, for the Small field in the Form Factor Style Class Override group box, you enter the override style class to apply when a small form factor device accesses the page.

Suppress System-Supplied Style Classes

Select to suppress the system default styles applied by PeopleTools:

  • If it is selected, it applies to all form factors, and the system applies no PeopleTools default classes for the control (neither does the system load state information). Any application-specific styles override the PeopleTools defaults.

    Warning! When suppressing the default styles applied automatically by PeopleTools, you are then taking complete control of the CSS styling. This is not recommended.

  • If it is not selected, any application-specific styles specified for Style Classes extend the default system styles, such that both styles are used.

Suppress on Form Factor

To prevent a page control from being displayed on a specific form factor, select the appropriate form factor. If selected, the page control is never rendered on the client device, similar to setting a field as invisible for a classic page. Suppression can improve throughput as the size of the HTML document is reduced.

Label Rendering

The system renders the display of a page control as a combined unit of both the control and its label. You can specify the position of the label.

Before Control: Select for the label to appear to the right of the control.

After Control: Select for the label to appear to the left of the control.

Control Structure

Basic: Select to have the control appear on the fluid page just as it would appear on a classic page.

Advanced: Select to have the control appear on the fluid page with the look and feel of a modern, touch-enabled application. For example, a check box would appear as a toggle switch, rather than as a square box.

Include Labels in Grid Cells

If using a tab separator in your grid, you are allowed to generate field labels within a grid.

Typically, these are suppressed, but because you can put group boxes within grids, these labels are appropriate for the individual page fields inside the group box (depending on context).

Depending on the type of control you are adding to the page, there can be additional options for that control. Use the following links to find more information for each control.