Class zebkit.layout.ListLayout
mixed with <zebkit.layout.Layout>

List layout places components vertically one by one

// create panel and set list layout for it
var p = new zebkit.ui.Panel();

// add three buttons into the panel with list layout
p.add(new zebkit.ui.Button("Item 1"));
p.add(new zebkit.ui.Button("Item 2"));
p.add(new zebkit.ui.Button("Item 3"));
zebkit.layout.ListLayout ([ax], [gap])

  • [ax] <String>

    horizontal list item alignment:

    "left" "right" "center" "stretch"

  • [gap] <Integer>

    a space in pixels between laid out components

Inherited methods:

public <String> ax

Horizontal list items alignment

public <Integer> gap

Pixel gap between list items