virtual class domkit::GridBox

sys::Obj
  dom::Elem
    domkit::Box
      domkit::GridBox

@Js

Source

GridBox lays its children out in a two dimensional grid.

See also: docDomkit

addRow

This addRow(List<Elem?> cells, List<Int> colspan := List<>.defVal)

Source

Add a new row to grid.

cellStyle

This cellStyle(Obj col, Obj row, Str style)

Source

Set style for cells. Valid values for col and row:

  • Specific index (0, 1, 2, etc)
  • Range of indexes (0..4, 7..<8, etc)
  • "*": apply to all row or columns
  • "even": apply only to even row or columns indexes
  • "odd": apply only to odd row or column indexes
halign

Align halign := Align.left

Source

How grid content is aligned horizontally against left-over space. Valid values are left, right, center, or fill.

insertRowBefore

This insertRowBefore(Int index, List<Elem?> cells, List<Int> colspan := List<>.defVal)

Source

Insert row before given index.

make

new make()

Source

numRows

Int numRows()

Source

The number of rows in this GridBox.

removeAllRows

This removeAllRows()

Source

Remove all rows of cells for this GridBox.

removeRow

This removeRow(Int index)

Source

Remove the row of cells at given index.

rowIndexOf

Int? rowIndexOf(Elem child)

Source

Return the row index that this child exists under, or null if child was not found in this GridBox.