The <bloxui:compressLayout> tag compresses the column and row headers into one level when there are multiple dimensions on the column or row axes.
This tag should be nested within the tag of a <blox:present> or <blox:grid> tag. It has the following tag attributes:
<bloxui:compressLayout applyLayout="" compressColumns="" compressRows="" description="" memberSeparator="" name="" showOnLayoutMenu="" />
where:
| Attribute | Required | Description |
|---|---|---|
| applyLayout | No | true — apply this layout when the page
is loaded; false — do not apply this layout when the page
is loaded. The default is true. Sometimes you may not want a layout to be applied until the user chooses to. In this case, set the showOnLayoutMenu attribute to true and turn on menu bar in your presentation Blox. |
| compressColumns | No | true — to compress the column headers
into one level. If you have multiple dimensions on the column axis, the headers
can be compressed into one level. The default for compressColumns is false.
When this attribute is set to true, the default members separator
is a vertical bar (" | ").
Note: If this or the compressRows attributes
are not specified, the tag will not do anything.
|
| compressRows | No | true — to compress the column headers
into one level. If you have multiple dimensions on the row axis, the headers
will be compressed into one level. The default for compressRows is false.
When this attribute is set to true, the default members separator
is a vertical bar (" | ").
Note: If this or the compressColumns attributes
are not specified, the tag will not do anything.
|
| description | No | The display layout name when showOnLayoutMenu is set to true. The default value is “Compressed Headers.” |
| memberSeparator | No | The text to use to separate the members. The default value is a vertical bar (" | ") with a space before and after. |
| name | No | The menu ID for this layout under the Format menu in the menu bar. Assigning a name gives you programmatic access to the menu for custom event handlers and actions. |
| showOnLayoutMenu | No | When set to true, this adds a Format menu to the menu bar (if it does not exist already), with an added menu option under the Layout submenu, labeled after the value of the description attribute. The default is false. |
The following example compresses the row and column headers in the grid using " / " as the member separator. This also adds a Compressed Layout menu option to the menu bar’s Format menu.
<%@ taglib uri="bloxtld" prefix="blox"%>
<%@ taglib uri="bloxuitld" prefix="bloxui"%>
<HTML>
<head>
<blox:header />
</head>
...
<body>
<blox:present id="myPresent" width="600" height="500" >
...
<bloxui:compressLayout
compressRows="true"
compressColumns="true"
showOnLayoutMenu="true"
memberSeparator = " / " />
...
</blox:present>
...
</body>
</HTML>