class domkit::SashBox
sys::Obj dom::Elem domkit::Box domkit::SashBox
@Js
SashBox lays out children in a single direction allowing both fixed and pertange sizes that can fill the parent container.
See also: docDomkit
- dir
-
Dir dir := Dir.rightDirection to layout child elements:
Dir.right: layout children left to rightDir.down: layout childrent top to bottom
- div
-
static Elem div()Create a new divider element for resizing children. Dividers are required between children when
resizableistrue. - make
-
new make() - minSize
-
Str minSize := "10%"Minimum size a child can be resized to if
resizableistrue. Only percentage sizes allowed. - onAdd
- onRemove
- onSashResize
-
Callback when user resizes a sash pane if
resizableistrue. - resizable
-
Bool resizable := falseAllow user to resize sash positions. See
div. - sizes
-
Str[] sizes := Str[,]Size to apply to each child, width or height based on
dir. Fixedpxand percentage sizes are allowed. Percentage sizes will be subtracted from total fixed size using CSScalc()method.