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.right

Direction to layout child elements:

  • Dir.right: layout children left to right
  • Dir.down: layout childrent top to bottom
make

new make()

minSize

Str minSize := "10%"

Minimum size a child can be resized to if resizable is true. Only percentage sizes allowed.

onAdd

protected virtual override Void onAdd(Elem c)

onRemove

protected virtual override Void onRemove(Elem c)

resizable

Bool resizable := false

Allow user to resize sash positions.

sizes

Str[] sizes := Str[,]

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.