open class GridPanel : SimplePanel
The container with CSS grid layout support.
GridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf(), init: GridPanel.() -> Unit = null) |
var alignContent: GRIDALIGNCONTENT?
CSS grid content alignment. |
|
var alignItems: GRIDALIGN?
CSS grid items alignment. |
|
var autoColumns: String?
CSS grid auto columns. |
|
var autoFlow: GRIDFLOW?
CSS grid auto flow. |
|
var autoRows: String?
CSS grid auto rows. |
|
var columnGap: Int?
CSS grid column gap. |
|
var justifyContent: GRIDJUSTIFYCONTENT?
CSS grid content justification. |
|
var justifyItems: GRIDJUSTIFY?
CSS grid items justification. |
|
var rowGap: Int?
CSS grid row gap. |
|
var templateAreas: List<String>?
CSS grid areas template. |
|
var templateColumns: String?
CSS grid columns template. |
|
var templateRows: String?
CSS grid rows template. |
fun add(child: Component, columnStart: Int? = null, rowStart: Int? = null, columnEnd: String? = null, rowEnd: String? = null, area: String? = null, justifySelf: GRIDJUSTIFY? = null, alignSelf: GRIDALIGN? = null, classes: Set<String> = setOf()): GridPanel
Adds a component to the grid container. open fun add(child: Component): GridPanel
Adds given component to the current container. |
|
open fun addAll(children: List<Component>): GridPanel
Adds a list of components to the current container. |
|
open fun getSnStyle(): List<StringPair>
Returns the list of String pairs defining CSS style attributes and their values. |
|
open fun remove(child: Component): GridPanel
Removes given component from the current container. |
|
open fun removeAll(): GridPanel
Removes all children from the current container. |
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 render(): VNode
Renders current component as a Snabbdom vnode. |
fun Container.gridPanel(autoColumns: String? = null, autoRows: String? = null, autoFlow: GRIDFLOW? = null, templateColumns: String? = null, templateRows: String? = null, templateAreas: List<String>? = null, columnGap: Int? = null, rowGap: Int? = null, justifyItems: GRIDJUSTIFY? = null, alignItems: GRIDALIGN? = null, justifyContent: GRIDJUSTIFYCONTENT? = null, alignContent: GRIDALIGNCONTENT? = null, classes: Set<String> = setOf(), init: GridPanel.() -> Unit = null): GridPanel
DSL builder extension function. |