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. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |