box

Purpose

The box model of XUL is used to divide a portion of the display into a series of boxes. Components inside of a box will orient themselves horizontally or vertically. By combining a series of boxes and separators, you can control the layout of the visual presentation.A box can lay out its children in one of two orientations, either horizontally or vertically. A horizontal box lines up its components horizontally and a vertical box orients its components vertically. You can think of a box as one row or one column from an HTML table.

Examples

<z:box orient="vertical">
    <z:button label="Button 1"/>
    <z:button label="Button 2"/>
</z:box>
<z:box orient="horizontal">
    <z:button label="Button 3"/>
    <z:button label="Button 4"/>
</z:box>

Description

Attributes

ZK Official Reference

Component Reference

Show box Component Reference

Java API

Show box Java API