class domkit::GridBox
sys::Obj dom::Elem domkit::Box domkit::GridBox
@Js
GridBox lays its children out in a two dimensional grid.
See also: pod doc
- addRow
-
This addRow(Elem?[] cells, Int[] colspan := Int[])Int#.emptyList()
Add a new row to grid.
- align
-
Str align := "left"
How grid content is aligned against left-over space. Valid values are "left", "right", "center", or "fill".
- cellStyle
-
This cellStyle(Obj col, Obj row, Str style)
Set style for cells. Valid values for
col
androw
:- Specific index (0, 1, 2, etc)
- Range of indexes (0..4, 7..<8, etc)
- "all": apply to all row or columns
- "even": apply only to even row or columns indexes
- "odd": apply only to odd row or column indexes
- make
-
new make()