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.setListLayout();
// 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]
)
Parameters:
-
[ax]
<String>horizontal list item alignment:
"left" "right" "center" "stretch"
-
[gap]
<Integer>a space in pixels between laid out components