layout - Layout (property 1)

Specifies the direction of grouped controls, horizontal or vertical.

Category

format

Syntax

layout="lineDirection|pageDirection"
Where lineDirection (default) aligns the check boxes horizontally and pageDirection aligns the check boxes vertically.

Usage

In Design mode, click the top tab under Properties and look for Layout, or click All Properties and look for layout under format.

Examples

This Check Box Group uses page (vertical) layout.
<xp:checkBoxGroup id="checkBoxGroup1" value="#{document1.fruit}"
	layout="pageDirection">
	<xp:selectItems>
		<xp:this.value>
			<![CDATA[#{javascript:var list = @DbColumn("", "fruits", 1);
			return @Explode(list,",")}]]>
		</xp:this.value>
	</xp:selectItems>
</xp:checkBoxGroup>