- Index
- »
- fan.domkit
- »
- SashBox
SashBox
@Js
class SashBox : Box
SashBox lays out children in a single direction allowing both fixed and pertange sizes that can fill the parent container.
See also: docDomkit
Direction to layout child elements
Minimum size a child can be resized to if resizable is true
Allow user to resize sash positions
Size to apply to each child, width or height based on dir
Create a new divider element for resizing children
Callback when user resizes a sash pane if resizable is true
Dir : dir
Direction to layout child elements:
Dir.right: layout children left to rightDir.down: layout childrent top to bottom
static Elem div()
Create a new divider element for resizing children. Dividers are
required between children when resizable is true.
new make()
Str : minSize
Minimum size a child can be resized to if resizable is true.
Only percentage sizes allowed.
virtual Void onAdd(Elem c)
virtual Void onRemove(Elem c)
Void onSashResize(|This| f)
Callback when user resizes a sash pane if resizable is true.
Bool : resizable
Allow user to resize sash positions. See div.
Str[] : sizes
Size to apply to each child, width or height based on dir. Fixed
px and percentage sizes are allowed. Percentage sizes will be
subtracted from total fixed size using CSS calc() method.