|
![]() |
A cell on the layout can present formatted text, which may include the results of JSP tags or directives. Follow these instructions to control the presentation of the label. Labels can also appear in headers.
Labels may appear in any cell. Labels are not associated with fields (properties) except by visual placement.
You can style labels in the skin rule, as well as create custom label formats. See Skin form — Components — Controls — Labels.
To speed development, you can drag and drop a
Single Value
property from the Application Explorer into the right cell of a pair of adjacent cells. The system drops a label control into the left cell (if it is empty).
In a SmartLayout, some columns are labeled
Label
or Field
. This designation only determines the (default) styles applied to values in the column; it does not restrict which controls can be placed in cells of the column. For example, you can drop a Label control into a Field
column.
Field |
Description |
Text |
Type the text that forms the label. If the text is wider than the panel, click the magnifying glass icon (
Localization? checkbox (on the HTML tab of the rule form) is selected, you can click (![]() |
Label for |
If you leave this blank, the generated HTML from this form assumes that this label identifies the cell (if any) immediately to the right of the current cell. If this field is not blank, the generated HTML from this form at runtime allows:
|
Required |
Select to cause a yellow asterisk (
|
Align column with column data |
Check this box to align the column headers with the data in the columns. When unchecked, a drop-down menu appears giving you the option of aligning the column headers to the left, right, or middle. |
Read Only |
Leave cleared in most cases. Labels are always presented in read-only mode, so this setting affects only styles. Select to cause the label to be presented with read-only styles always, or based on a when condition rule, even when the enclosing layout is in read-write mode. If desired, in the field that displays, specify a read only condition using:
|
Visibility |
To control the visibility of the label, select one of the following:
pyCurrentSpace=="ASpaceName" Then select the Run visibility condition on client checkbox. |
Wrap Text | Select if the label is to be presented as multiple lines when the text is longer than the cell width. If this checkbox box is not selected, the label may appear truncated at runtime. |
Field |
Description |
Format |
Specifies the format of the label control. You can style label controls and create additional formats in the skin rule. |
Advanced Options |
|
Tips
Use these Windows operations to speed development:
SHIFT
key, select the cell, drag and drop it in another cell, in the same one layout or another layout. Ctrl
key. Release the Ctrl
key to drop a duplicate row or column.