open class ResponsiveGridPanel : SimplePanel
The container with support for Bootstrap responsive grid layout.
ResponsiveGridPanel(gridSize: GridSize = GridSize.MD, rows: Int = 0, cols: Int = 0, align: Align? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null) |
var align: Align?
Text align of grid cells. |
open fun add(child: Component, col: Int, row: Int, size: Int = 0, offset: Int = 0): ResponsiveGridPanel
Adds child component to the grid. open fun add(child: Component): ResponsiveGridPanel
Adds given component to the current container. |
|
open fun addAll(children: List<Component>): ResponsiveGridPanel
Adds a list of components to the current container. |
|
open fun remove(child: Component): ResponsiveGridPanel
Removes given component from the current container. |
|
open fun removeAt(col: Int, row: Int): ResponsiveGridPanel
Removes child component at given location (column, row). |
fun addInternal(child: Component): SimplePanel
Protected and final method to add given component to the current container. |
|
open fun childrenVNodes(): Array<VNode>
Returns the array of the children Snabbdom vnodes. |
|
open fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
open fun removeAll(): SimplePanel
Removes all children from the current container. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
fun Container.responsiveGridPanel(gridSize: GridSize = GridSize.MD, rows: Int = 0, cols: Int = 0, align: Align? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null): ResponsiveGridPanel
DSL builder extension function. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |