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

List layout places components vertically one by one

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

// 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"));
Constructor:
zebkit.layout.ListLayout ([ax], [gap])

Parameters:
  • [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