From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+ Constructor Overrides SimplePanel.addAll Adds a list of components to the current container.
+ Return Adds child component to the grid. Return Overrides SimplePanel.add Adds given component to the current container. Return Text align of grid cells. Getter Text align of grid cells.
+
+<init>
+
+ResponsiveGridPanel(gridSize: GridSize = GridSize.MD, rows: Int = 0, cols: Int = 0, align: Align? = null, classes: Set<String> = setOf(), init: ResponsiveGridPanel.() -> Unit = null)
+Parameters
+
+
+
+align - text align of grid cellsclasses - a set of CSS class namesinit - an initializer extension function
+
+
+addAll
+
+open fun addAll(children: List<Component>): ResponsiveGridPanel
+Parameters
+children - list of child components
+current container
+
+add
+
+open fun add(child: Component, col: Int, row: Int, size: Int = 0, offset: Int = 0): ResponsiveGridPanel
+Parameters
+
+
+
+
+
+
+this containeropen fun add(child: Component): ResponsiveGridPanel
+Parameters
+
+
+current container
+
+align
+
+var align: Align?
+
+
Setter
+
Text align of grid cells.
+ + + diff --git a/api/pl.treksoft.kvision.panel/-responsive-grid-panel/index.html b/api/pl.treksoft.kvision.panel/-responsive-grid-panel/index.html new file mode 100644 index 00000000..f3b5e3c4 --- /dev/null +++ b/api/pl.treksoft.kvision.panel/-responsive-grid-panel/index.html @@ -0,0 +1,147 @@ + + + +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. + |
+
open fun removeAt(col: Int, row: Int): ResponsiveGridPanel
+Removes child component at given location (column, row).
+Return
+this container
open fun remove(child: Component): ResponsiveGridPanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
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.
+It takes the same parameters as the constructor of the built component.
+ + -- cgit