Whatever message this page gives is out now! Go check it out!
<cflayout
type="accordion|border|hbox|tab|vbox"
activeOnTop="false|true"
align="center|justify|left|right"
fillHeight="true|false"
fitToWindow="true|false"
height="integer"
name="string"
padding="integer"
style="CSS style specification"
tabHeight="measurement"
tabPosition="top|bottom"
tabStrip="true|false"
titleCollapse="true|false"
width="integer">
cflayoutarea tags
</cflayout>| Attribute | Req/Opt | Default | Applies to | Description |
type | Required | all | The type of layout. The following values are valid:
| |
activeOnTop | Optional | false | accordion | Specifies whether the active panel moves to the top of the layout, becoming the first panel. |
align | Optional | Determined by browser layout direction | all | Specifies the default alignment of the content of child layout areas. Each cflayoutarea tag can specify an alignment attribute to override this value. The following values are valid:
|
fillHeight | Optional | true | accordion | A Boolean value that specifies whether to adjust the active layout area's height to fill the available space in the layout control container:
|
fitToWindow | Optional | false | border | A Boolean value that specifies whether the border layout must occupy 100% of the width and height of the window:
|
height | Optional | 600 for border layout; autoheight for others | all | Height of the layout in pixels. For the tab layout, the height attribute has the same functionality as the tabheight attribute. If you specify both height and tabheight attributes, height takes priority over tabheight. The height value specified here takes priority over the height value specified using the style attribute. |
name | Optional | all | The name of the layout region. Should be unique on a page. | |
padding | Optional | 0 | hbox, vbox |
|
style | Optional | all | A CSS style specification that defines layout styles. | |
tabHeight | Optional | tab | Specifies the height of the content area of all child layout areas. You can override this setting by specifying a height setting in a individual cflayoutarea tag style attributes. | |
tabPosition | Optional | top | tab | Specifies the location of the tabs relative to the tab region contents.
|
tabStrip | Optional | true | tab | If true, a background tab strip is displayed. |
titleCollapse | Optional | true | accordion | Specifies whether clicking anywhere on each layout area's title bar expands and collapses the layout area. If false, the user must click the title bar +/- button to expand or collapse a layout area. |
width | Optional | all | Width of the layout in pixels. This value takes priority over the width defined using the style attribute. If no value is specified, autoWidth is applied and therefore, content fills the entire screen. |
| Function | Description |
Gets the underlying Ext JS - JavaScript Library object for the specified border type cflayout control. | |
Gets the underlying Ext JS - JavaScript Library object for the specified tab type cflayout control. | |
Gets the underlying Ext JS - JavaScript Library object for the specified accordion type cflayout control. |
<html>
<head>
</head>
<body>
<cflayout name="outerlayout" type="vbox">
<cflayoutarea style="height:400;">
<cflayout name="thelayout" type="border">
<!--- The 100% height style ensures that the background color fills
the area. --->
<cflayoutarea position="top" size="100" splitter="true"
style="background-color:##00FFFF; height:100%">
This is text in layout area 1: top
</cflayoutarea>
<cflayoutarea title="Left layout area" position="left"
closable="true"
collapsible="true" name="left" splitter="true"
style="background-color:##FF00FF; height:100%">
This is text in layout area 2: left<br />
You can close and collapse this area.
</cflayoutarea>
<cflayoutarea position="center"
style="background-color:##FFFF00; height:100%">
This is text in layout area 3: center<br />
</cflayoutarea>
<cflayoutarea position="right" collapsible="true"
title="Right Layout Area" initcollapsed="true"
style="background-color:##FF00FF; height:100%" >
This is text in layout area 4: right<br />
You can collapse this, but not close it.<br />
It is initially collapsed.
</cflayoutarea>
<cflayoutarea position="bottom" size="100" splitter="true"
style="background-color:##00FFFF; height:100%">
This is text in layout area 5: bottom
</cflayoutarea>
</cflayout>
</cflayoutarea>
<cflayoutarea style="height:100; ; background-color:##FFCCFF">
<h3>Change the state of Area 2</h3>
<cfform>
<cfinput name="expand2" width="100" value="Expand Area 2" type="button"
onClick="ColdFusion.Layout.expandArea('thelayout', 'left');">
<cfinput name="collapse2" width="100" value="Collapse Area 2" type="button"
onClick="ColdFusion.Layout.collapseArea('thelayout', 'left');">
<cfinput name="show2" width="100" value="Show Area 2" type="button"
onClick="ColdFusion.Layout.showArea('thelayout', 'left');">
<cfinput name="hide2" width="100" value="Hide Area 2" type="button"
onClick="ColdFusion.Layout.hideArea('thelayout', 'left');">
</cfform>
</cflayoutarea>
</cflayout>
</body>
</html>