An options object for initializing a box panel.

interface IOptions {
    alignment?: BoxLayout.Alignment;
    direction?: BoxLayout.Direction;
    layout?: BoxLayout;
    spacing?: number;
}

Properties

alignment?: BoxLayout.Alignment

The content alignment of the panel.

The default is 'start'.

direction?: BoxLayout.Direction

The layout direction of the panel.

The default is 'top-to-bottom'.

layout?: BoxLayout

The box layout to use for the box panel.

If this is provided, the other options are ignored.

The default is a new BoxLayout.

spacing?: number

The spacing between items in the panel.

The default is 4.