From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb 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 flexbox container.
+
+
+
+ Overrides SimplePanel.add Adds given component to the current container. Return CSS flexbox content alignment. Getter CSS flexbox content alignment.
+
+<init>
+
+FlexPanel(direction: FlexDir? = null, wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, alignContent: FlexAlignContent? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (FlexPanel.() -> Unit)? = null)
+Parameters
+direction
- flexbox directionjustify
- flexbox content justificationalignItems
- flexbox items alignmentalignContent
- flexbox content alignmentspacing
- spacing between columns/rowsclasses
- a set of CSS class namesinit
- an initializer extension function
+
+
+addAll
+
+open fun addAll(children: List<Component>): FlexPanel
+Parameters
+children
- list of child components
+current container
+
+add
+
+fun add(child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: Int? = null, alignSelf: FlexAlignItems? = null, classes: Set<String> = setOf()): FlexPanel
+Parameters
+
+order
- child flexbox orderingshrink
- child flexbox shrinkalignSelf
- child self alignmentclasses
- a set of CSS class namesopen fun add(child: Component): FlexPanel
+Parameters
+
+
+current container
+
+alignContent
+
+var alignContent: FlexAlignContent?
+
+
Setter
+
CSS flexbox content alignment.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/align-items.html b/api1/pl.treksoft.kvision.panel/-flex-panel/align-items.html new file mode 100644 index 00000000..b6d46129 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-panel/align-items.html @@ -0,0 +1,21 @@ + + + +var alignItems: FlexAlignItems?
+CSS flexbox items alignment.
+Getter
+
CSS flexbox items alignment.
+ +Setter
+
CSS flexbox items alignment.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/direction.html b/api1/pl.treksoft.kvision.panel/-flex-panel/direction.html new file mode 100644 index 00000000..b4cb415a --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-panel/direction.html @@ -0,0 +1,21 @@ + + + +var direction: FlexDir?
+CSS flexbox direction.
+Getter
+
CSS flexbox direction.
+ +Setter
+
CSS flexbox direction.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/flex-panel.html b/api1/pl.treksoft.kvision.panel/-flex-panel/flex-panel.html new file mode 100644 index 00000000..0a3f453a --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-panel/flex-panel.html @@ -0,0 +1,16 @@ + + + +fun Container.flexPanel(direction: FlexDir? = null, wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, alignContent: FlexAlignContent? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (FlexPanel.() -> Unit)? = null): FlexPanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/get-sn-style.html b/api1/pl.treksoft.kvision.panel/-flex-panel/get-sn-style.html new file mode 100644 index 00000000..32fccbed --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-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
open class FlexPanel : SimplePanel
+The container with CSS flexbox layout support.
++ + | +
+FlexPanel(direction: FlexDir? = null, wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, alignContent: FlexAlignContent? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (FlexPanel.() -> Unit)? = null) |
+
+ + | +
+var alignContent: FlexAlignContent?
+CSS flexbox content alignment. + |
+
+ + | +
+var alignItems: FlexAlignItems?
+CSS flexbox items alignment. + |
+
+ + | +
+var direction: FlexDir?
+CSS flexbox direction. + |
+
+ + | +
+var justify: FlexJustify?
+CSS flexbox content justification. + |
+
+ + | +
+var spacing: Int?
+The spacing between columns/rows. + |
+
+ + | +
+var wrap: FlexWrap?
+CSS flexbox wrap mode. + |
+
+ + | +
+fun add(child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: Int? = null, alignSelf: FlexAlignItems? = null, classes: Set<String> = setOf()): FlexPanel
+Adds a component to the flexbox container. +open fun add(child: Component): FlexPanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): FlexPanel
+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): FlexPanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): FlexPanel
+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.flexPanel(direction: FlexDir? = null, wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, alignContent: FlexAlignContent? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (FlexPanel.() -> Unit)? = null): FlexPanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
+ + | +
+open class HPanel : FlexPanel
+The container with horizontal layout. + |
+
+ + | +
+open class VPanel : FlexPanel
+The container with vertical layout. + |
+
var justify: FlexJustify?
+CSS flexbox content justification.
+Getter
+
CSS flexbox content justification.
+ +Setter
+
CSS flexbox content justification.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/remove-all.html b/api1/pl.treksoft.kvision.panel/-flex-panel/remove-all.html new file mode 100644 index 00000000..4a5a9db9 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-panel/remove-all.html @@ -0,0 +1,18 @@ + + + +open fun removeAll(): FlexPanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): FlexPanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
var spacing: Int?
+The spacing between columns/rows.
+Getter
+
The spacing between columns/rows.
+ +Setter
+
The spacing between columns/rows.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/wrap.html b/api1/pl.treksoft.kvision.panel/-flex-panel/wrap.html new file mode 100644 index 00000000..4ae5640d --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-panel/wrap.html @@ -0,0 +1,21 @@ + + + +var wrap: FlexWrap?
+CSS flexbox wrap mode.
+Getter
+
CSS flexbox wrap mode.
+ +Setter
+
CSS flexbox wrap mode.
+ + + -- cgit