An options object for initializing a box layout.

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

Properties

alignment?: BoxLayout.Alignment

The content alignment of the layout.

The default is 'start'.

direction?: BoxLayout.Direction

The direction of the layout.

The default is 'top-to-bottom'.

spacing?: number

The spacing between items in the layout.

The default is 4.