Layout

Generates layout containers supporting various layout types including tab, accordion, border, hbox, and vbox.

Syntax

<bx:layout 
    type="string"
    align="string"
    fillHeight="boolean"
    fitToWindow="boolean"
    height="string"
    width="string"
    style="string"
    id="string"
    class="string"
    name="string">
    <!-- layoutarea children -->
</bx:layout>

Attributes

Attribute
Type
Required
Description
Default

type

string

Yes

Layout type: tab, accordion, border, hbox, vbox

align

string

No

Content alignment: left, center, right, justify

fillHeight

boolean

No

Fill available height

false

fitToWindow

boolean

No

Fill entire window viewport

false

height

string

No

CSS height value

width

string

No

CSS width value

style

string

No

Additional CSS styles

id

string

No

HTML element ID

Auto-generated

class

string

No

Additional CSS classes

name

string

No

Component name identifier

Examples

Tab Layout

Accordion Layout

Border Layout

Horizontal Box Layout

Layout Types

  • tab: Tabbed interface with clickable tab headers

  • accordion: Collapsible sections that expand/collapse

  • border: Five-region layout (north, south, east, west, center)

  • hbox: Horizontal box layout with flexible widths

  • vbox: Vertical box layout with flexible heights

Usage Notes

  • Must contain <bx:layoutarea> child components

  • Each layout type has specific requirements for layoutarea attributes

  • Requires BoxLang AJAX JavaScript files for interactive functionality

  • The type attribute is required and determines the layout behavior

Last updated

Was this helpful?