ResponsiveGridPanel

open class ResponsiveGridPanel(gridSize: GridSize, rows: Int, cols: Int, align: <ERROR CLASS>?, className: String?, init: ResponsiveGridPanel.() -> Unit?)

The container with support for Bootstrap responsive grid layout.

Parameters

gridSize

grid size

rows

number of rows

cols

number of columns

align

text align of grid cells

className

CSS class names

init

an initializer extension function

Constructors

ResponsiveGridPanel
Link copied to clipboard
fun ResponsiveGridPanel(gridSize: GridSize = GridSize.MD, rows: Int = 0, cols: Int = 0, align: <ERROR CLASS>? = null, className: String? = null, init: ResponsiveGridPanel.() -> Unit? = null)

Functions

add
Link copied to clipboard
open fun add(child: <ERROR CLASS>): ResponsiveGridPanel

open fun add(child: <ERROR CLASS>, col: Int, row: Int, size: Int = 0, offset: Int = 0, className: String? = null): ResponsiveGridPanel

Adds child component to the grid.

addAll
Link copied to clipboard
open fun addAll(children: List<<ERROR CLASS>>): ResponsiveGridPanel
options
Link copied to clipboard
open fun options(col: Int, row: Int, size: Int = 0, offset: Int = 0, className: String? = null, builder: <ERROR CLASS>.() -> Unit)

DSL function to add components with additional options.

remove
Link copied to clipboard
open fun remove(child: <ERROR CLASS>): ResponsiveGridPanel
removeAt
Link copied to clipboard
open fun removeAt(col: Int, row: Int): ResponsiveGridPanel

Removes child component at given location (column, row).

Properties

align
Link copied to clipboard
var align: <ERROR CLASS>

Text align of grid cells.