From 7c2850063697f94a0d8b8d8f8588136dd4b3d05e 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 a component to the grid container.
+
+
+
+
+
+
+ Return Overrides SimplePanel.add Adds given component to the current container. Return CSS grid content alignment. Getter CSS grid content alignment.
+
+<init>
+
+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)
+Parameters
+autoColumns
- grid auto columnstemplateColumns
- grid columns templatetemplateRows
- grid rows templatetemplateAreas
- grid areas templatejustifyItems
- grid items justificationalignItems
- grid items alignmentjustifyContent
- flexbox content justificationalignContent
- flexbox content alignmentclasses
- a set of CSS class namesinit
- an initializer extension function
+
+
+addAll
+
+open fun addAll(children: List<Component>): GridPanel
+Parameters
+children
- list of child components
+current container
+
+add
+
+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
+Parameters
+
+columnStart
- number of starting columnrowStart
- number of starting rowcolumnEnd
- number of ending columnrowEnd
- number of ending rowjustifySelf
- child self justificationalignSelf
- child self alignmentclasses
- a set of CSS class names
+current containeropen fun add(child: Component): GridPanel
+Parameters
+
+
+current container
+
+alignContent
+
+var alignContent: GridAlignContent?
+
+
Setter
+
CSS grid content alignment.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/align-items.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/align-items.html new file mode 100644 index 00000000..a2d50861 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/align-items.html @@ -0,0 +1,21 @@ + + + +var alignItems: GridAlign?
+CSS grid items alignment.
+Getter
+
CSS grid items alignment.
+ +Setter
+
CSS grid items alignment.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-columns.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-columns.html new file mode 100644 index 00000000..d6c9a818 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-columns.html @@ -0,0 +1,21 @@ + + + +var autoColumns: String?
+CSS grid auto columns.
+Getter
+
CSS grid auto columns.
+ +Setter
+
CSS grid auto columns.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-flow.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-flow.html new file mode 100644 index 00000000..a8bdd03f --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-flow.html @@ -0,0 +1,21 @@ + + + +var autoFlow: GridFlow?
+CSS grid auto flow.
+Getter
+
CSS grid auto flow.
+ +Setter
+
CSS grid auto flow.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-rows.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-rows.html new file mode 100644 index 00000000..bd15860f --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/auto-rows.html @@ -0,0 +1,21 @@ + + + +var autoRows: String?
+CSS grid auto rows.
+Getter
+
CSS grid auto rows.
+ +Setter
+
CSS grid auto rows.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/column-gap.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/column-gap.html new file mode 100644 index 00000000..a5767da3 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/column-gap.html @@ -0,0 +1,21 @@ + + + +var columnGap: Int?
+CSS grid column gap.
+Getter
+
CSS grid column gap.
+ +Setter
+
CSS grid column gap.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/get-sn-style.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/get-sn-style.html new file mode 100644 index 00000000..7cc9dc49 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/get-sn-style.html @@ -0,0 +1,18 @@ + + + +protected open fun getSnStyle(): List<StringPair>
+Overrides StyledComponent.getSnStyle
+Returns the list of String pairs defining CSS style attributes and their values.
+Return
+the list of attributes and their values
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.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/index.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/index.html new file mode 100644 index 00000000..6d933d58 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/index.html @@ -0,0 +1,246 @@ + + + +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. + |
+
var justifyContent: GridJustifyContent?
+CSS grid content justification.
+Getter
+
CSS grid content justification.
+ +Setter
+
CSS grid content justification.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/justify-items.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/justify-items.html new file mode 100644 index 00000000..d2a8d1e9 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/justify-items.html @@ -0,0 +1,21 @@ + + + +var justifyItems: GridJustify?
+CSS grid items justification.
+Getter
+
CSS grid items justification.
+ +Setter
+
CSS grid items justification.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/remove-all.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/remove-all.html new file mode 100644 index 00000000..3406e020 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/remove-all.html @@ -0,0 +1,18 @@ + + + +open fun removeAll(): GridPanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): GridPanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
var rowGap: Int?
+CSS grid row gap.
+Getter
+
CSS grid row gap.
+ +Setter
+
CSS grid row gap.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-areas.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-areas.html new file mode 100644 index 00000000..8cc09bb2 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-areas.html @@ -0,0 +1,21 @@ + + + +var templateAreas: List<String>?
+CSS grid areas template.
+Getter
+
CSS grid areas template.
+ +Setter
+
CSS grid areas template.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-columns.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-columns.html new file mode 100644 index 00000000..0d1923ac --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-columns.html @@ -0,0 +1,21 @@ + + + +var templateColumns: String?
+CSS grid columns template.
+Getter
+
CSS grid columns template.
+ +Setter
+
CSS grid columns template.
+ + + diff --git a/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-rows.html b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-rows.html new file mode 100644 index 00000000..95a8f91c --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.panel/-grid-panel/template-rows.html @@ -0,0 +1,21 @@ + + + +var templateRows: String?
+CSS grid rows template.
+Getter
+
CSS grid rows template.
+ +Setter
+
CSS grid rows template.
+ + + -- cgit