From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001
From: Robert Jaros Split panel direction. Helper function for creating JavaScript objects from dynamic constructors.
+
+ Constructor Overrides SimplePanel.addAll Adds a list of components to the current container.
+ Return Adds a component to the dock container.
+ Return Overrides SimplePanel.add Adds given component to the current container. Return DSL builder extension function. It takes the same parameters as the constructor of the built component. The container with dock layout (up, down, left, right and center positions). Adds a component to the dock container. Adds given component to the current container. Adds a list of components to the current container. Removes given component from the current container. Removes all children from the current container. Removes child from given position in the dock. Protected and final method to add given component to the current container. Returns the array of the children Snabbdom vnodes. Returns a list of children of the current container. Renders current component as a Snabbdom vnode. DSL builder extension function. Helper function for creating JavaScript objects from dynamic constructors. Overrides SimplePanel.removeAll Removes all children from the current container. Return Removes child from given position in the dock.
+ Return Overrides SimplePanel.remove Removes given component from the current container. Return CSS flexbox content alignment options. Helper function for creating JavaScript objects from dynamic constructors. CSS flexbox alignments options. Helper function for creating JavaScript objects from dynamic constructors. CSS flexbox directions. Helper function for creating JavaScript objects from dynamic constructors. CSS flexbox justification options. Helper function for creating JavaScript objects from dynamic constructors.
+
+
+
+
+
+
+ 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.
+
+HORIZONTAL
+
+HORIZONTAL
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-direction/-v-e-r-t-i-c-a-l.html b/api1/pl.treksoft.kvision.panel/-direction/-v-e-r-t-i-c-a-l.html
new file mode 100644
index 00000000..e006bc2e
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-direction/-v-e-r-t-i-c-a-l.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+VERTICAL
+
+VERTICAL
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-direction/index.html b/api1/pl.treksoft.kvision.panel/-direction/index.html
new file mode 100644
index 00000000..b4f6ab8f
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-direction/index.html
@@ -0,0 +1,47 @@
+
+
+
+
+
+Direction
+enum class Direction
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-dock-panel/-init-.html b/api1/pl.treksoft.kvision.panel/-dock-panel/-init-.html
new file mode 100644
index 00000000..d8f41cd6
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-dock-panel/-init-.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+<init>
+
+DockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit)? = null)
+Parameters
+classes
- a set of CSS class namesinit
- an initializer extension function
+
+
+addAll
+
+open fun addAll(children: List<Component>): DockPanel
+Parameters
+children
- list of child components
+current container
+
+add
+
+open fun add(child: Component, position: Side): DockPanel
+Parameters
+
+position
- position in the dock
+current containeropen fun add(child: Component): DockPanel
+Parameters
+
+
+current container
+
+dockPanel
+
+fun Container.dockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit)? = null): DockPanel
+
+
+DockPanel
+open class DockPanel : SimplePanel
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+DockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit)? = null)
Functions
+
+
+
+
+
+
+
+
+
+
+open fun add(child: Component, position: Side): DockPanel
+open fun add(child: Component): DockPanel
+
+
+
+
+
+
+
+open fun addAll(children: List<Component>): DockPanel
+
+
+
+
+
+
+
+open fun remove(child: Component): DockPanel
+
+
+
+
+
+
+
+open fun removeAll(): DockPanel
+
+
+
+
+
+
+
+
+open fun removeAt(position: Side): DockPanel
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+fun addInternal(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun childrenVNodes(): Array<VNode>
+
+
+
+
+
+
+
+open fun getChildren(): List<Component>
+
+
+
+
+
+
+
+
+open fun render(): VNode
+Companion Object Functions
+
+
+
+
+
+
+
+
+
+
+
+fun Container.dockPanel(classes: Set<String> = setOf(), init: (DockPanel.() -> Unit)? = null): DockPanel
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-dock-panel/remove-all.html b/api1/pl.treksoft.kvision.panel/-dock-panel/remove-all.html
new file mode 100644
index 00000000..42174bd5
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-dock-panel/remove-all.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+removeAll
+
+open fun removeAll(): DockPanel
+
+current container
+
+removeAt
+
+open fun removeAt(position: Side): DockPanel
+Parameters
+position
- position in the dock
+current container
+
+remove
+
+open fun remove(child: Component): DockPanel
+Parameters
+
+
+current container
+
+CENTER
+
+CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-content/-f-l-e-x-e-n-d.html b/api1/pl.treksoft.kvision.panel/-flex-align-content/-f-l-e-x-e-n-d.html
new file mode 100644
index 00000000..a8a3c226
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-content/-f-l-e-x-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+FLEXEND
+
+FLEXEND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-content/-f-l-e-x-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-flex-align-content/-f-l-e-x-s-t-a-r-t.html
new file mode 100644
index 00000000..0bfb9922
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-content/-f-l-e-x-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+FLEXSTART
+
+FLEXSTART
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-p-a-c-e-a-r-o-u-n-d.html b/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-p-a-c-e-a-r-o-u-n-d.html
new file mode 100644
index 00000000..481534e8
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-p-a-c-e-a-r-o-u-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+SPACEAROUND
+
+SPACEAROUND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-p-a-c-e-b-e-t-w-e-e-n.html b/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-p-a-c-e-b-e-t-w-e-e-n.html
new file mode 100644
index 00000000..f07a9c72
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-p-a-c-e-b-e-t-w-e-e-n.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+SPACEBETWEEN
+
+SPACEBETWEEN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-t-r-e-t-c-h.html b/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-t-r-e-t-c-h.html
new file mode 100644
index 00000000..b1773eb1
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-content/-s-t-r-e-t-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+STRETCH
+
+STRETCH
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-content/index.html b/api1/pl.treksoft.kvision.panel/-flex-align-content/index.html
new file mode 100644
index 00000000..f994190f
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-content/index.html
@@ -0,0 +1,75 @@
+
+
+
+
+
+FlexAlignContent
+enum class FlexAlignContent
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-items/-b-a-s-e-l-i-n-e.html b/api1/pl.treksoft.kvision.panel/-flex-align-items/-b-a-s-e-l-i-n-e.html
new file mode 100644
index 00000000..352d48d4
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-items/-b-a-s-e-l-i-n-e.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+BASELINE
+
+BASELINE
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-items/-c-e-n-t-e-r.html b/api1/pl.treksoft.kvision.panel/-flex-align-items/-c-e-n-t-e-r.html
new file mode 100644
index 00000000..33cf1678
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-items/-c-e-n-t-e-r.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+CENTER
+
+CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-items/-f-l-e-x-e-n-d.html b/api1/pl.treksoft.kvision.panel/-flex-align-items/-f-l-e-x-e-n-d.html
new file mode 100644
index 00000000..9af2a7d2
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-items/-f-l-e-x-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+FLEXEND
+
+FLEXEND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-items/-f-l-e-x-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-flex-align-items/-f-l-e-x-s-t-a-r-t.html
new file mode 100644
index 00000000..0ee8dae9
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-items/-f-l-e-x-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+FLEXSTART
+
+FLEXSTART
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-items/-s-t-r-e-t-c-h.html b/api1/pl.treksoft.kvision.panel/-flex-align-items/-s-t-r-e-t-c-h.html
new file mode 100644
index 00000000..ee6c88f4
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-items/-s-t-r-e-t-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+STRETCH
+
+STRETCH
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-align-items/index.html b/api1/pl.treksoft.kvision.panel/-flex-align-items/index.html
new file mode 100644
index 00000000..0e086c41
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-align-items/index.html
@@ -0,0 +1,68 @@
+
+
+
+
+
+FlexAlignItems
+enum class FlexAlignItems
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-dir/-c-o-l-u-m-n-r-e-v.html b/api1/pl.treksoft.kvision.panel/-flex-dir/-c-o-l-u-m-n-r-e-v.html
new file mode 100644
index 00000000..c05dca4e
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-dir/-c-o-l-u-m-n-r-e-v.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+COLUMNREV
+
+COLUMNREV
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-dir/-c-o-l-u-m-n.html b/api1/pl.treksoft.kvision.panel/-flex-dir/-c-o-l-u-m-n.html
new file mode 100644
index 00000000..151f4648
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-dir/-c-o-l-u-m-n.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+COLUMN
+
+COLUMN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-dir/-r-o-w-r-e-v.html b/api1/pl.treksoft.kvision.panel/-flex-dir/-r-o-w-r-e-v.html
new file mode 100644
index 00000000..59be1098
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-dir/-r-o-w-r-e-v.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+ROWREV
+
+ROWREV
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-dir/-r-o-w.html b/api1/pl.treksoft.kvision.panel/-flex-dir/-r-o-w.html
new file mode 100644
index 00000000..2d4a3052
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-dir/-r-o-w.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+ROW
+
+ROW
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-dir/index.html b/api1/pl.treksoft.kvision.panel/-flex-dir/index.html
new file mode 100644
index 00000000..b588e508
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-dir/index.html
@@ -0,0 +1,61 @@
+
+
+
+
+
+FlexDir
+enum class FlexDir
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/-c-e-n-t-e-r.html b/api1/pl.treksoft.kvision.panel/-flex-justify/-c-e-n-t-e-r.html
new file mode 100644
index 00000000..4c54ca00
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/-c-e-n-t-e-r.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+CENTER
+
+CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/-f-l-e-x-e-n-d.html b/api1/pl.treksoft.kvision.panel/-flex-justify/-f-l-e-x-e-n-d.html
new file mode 100644
index 00000000..e0ec0526
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/-f-l-e-x-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+FLEXEND
+
+FLEXEND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/-f-l-e-x-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-flex-justify/-f-l-e-x-s-t-a-r-t.html
new file mode 100644
index 00000000..901e8f4a
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/-f-l-e-x-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+FLEXSTART
+
+FLEXSTART
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-a-r-o-u-n-d.html b/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-a-r-o-u-n-d.html
new file mode 100644
index 00000000..841d497e
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-a-r-o-u-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+SPACEAROUND
+
+SPACEAROUND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-b-e-t-w-e-e-n.html b/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-b-e-t-w-e-e-n.html
new file mode 100644
index 00000000..18155064
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-b-e-t-w-e-e-n.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+SPACEBETWEEN
+
+SPACEBETWEEN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-e-v-e-n-l-y.html b/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-e-v-e-n-l-y.html
new file mode 100644
index 00000000..88c6dd00
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/-s-p-a-c-e-e-v-e-n-l-y.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+SPACEEVENLY
+
+SPACEEVENLY
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-justify/index.html b/api1/pl.treksoft.kvision.panel/-flex-justify/index.html
new file mode 100644
index 00000000..ffbb5636
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-justify/index.html
@@ -0,0 +1,75 @@
+
+
+
+
+
+FlexJustify
+enum class FlexJustify
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-panel/-init-.html b/api1/pl.treksoft.kvision.panel/-flex-panel/-init-.html
new file mode 100644
index 00000000..f3d06b40
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-panel/-init-.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+<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.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-flex-wrap/-n-o-w-r-a-p.html b/api1/pl.treksoft.kvision.panel/-flex-wrap/-n-o-w-r-a-p.html new file mode 100644 index 00000000..1b82b46e --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-flex-wrap/-n-o-w-r-a-p.html @@ -0,0 +1,14 @@ + + + +NOWRAP
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-wrap/-w-r-a-p-r-e-v.html b/api1/pl.treksoft.kvision.panel/-flex-wrap/-w-r-a-p-r-e-v.html
new file mode 100644
index 00000000..763d8871
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-wrap/-w-r-a-p-r-e-v.html
@@ -0,0 +1,14 @@
+
+
+
+WRAPREV
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-wrap/-w-r-a-p.html b/api1/pl.treksoft.kvision.panel/-flex-wrap/-w-r-a-p.html
new file mode 100644
index 00000000..92c5a21e
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-wrap/-w-r-a-p.html
@@ -0,0 +1,14 @@
+
+
+
+WRAP
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-flex-wrap/index.html b/api1/pl.treksoft.kvision.panel/-flex-wrap/index.html
new file mode 100644
index 00000000..faf4e799
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-flex-wrap/index.html
@@ -0,0 +1,54 @@
+
+
+
+enum class FlexWrap
+CSS flexbox wrap modes.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/-e-n-d.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/-e-n-d.html
new file mode 100644
index 00000000..52bde6de
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+END
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-a-r-o-u-n-d.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-a-r-o-u-n-d.html
new file mode 100644
index 00000000..77bbd042
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-a-r-o-u-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+SPACEAROUND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-b-e-t-w-e-e-n.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-b-e-t-w-e-e-n.html
new file mode 100644
index 00000000..39fa02a8
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-b-e-t-w-e-e-n.html
@@ -0,0 +1,14 @@
+
+
+
+SPACEBETWEEN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-e-v-e-n-l-y.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-e-v-e-n-l-y.html
new file mode 100644
index 00000000..a2f98f61
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-p-a-c-e-e-v-e-n-l-y.html
@@ -0,0 +1,14 @@
+
+
+
+SPACEEVENLY
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-t-a-r-t.html
new file mode 100644
index 00000000..bcf5a4f8
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+START
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-t-r-e-t-c-h.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-t-r-e-t-c-h.html
new file mode 100644
index 00000000..0ca2e905
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/-s-t-r-e-t-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+STRETCH
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align-content/index.html b/api1/pl.treksoft.kvision.panel/-grid-align-content/index.html
new file mode 100644
index 00000000..89d8cf29
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align-content/index.html
@@ -0,0 +1,82 @@
+
+
+
+enum class GridAlignContent
+CSS grid content alignment options.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align/-e-n-d.html b/api1/pl.treksoft.kvision.panel/-grid-align/-e-n-d.html
new file mode 100644
index 00000000..9d573fcd
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align/-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+END
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align/-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-grid-align/-s-t-a-r-t.html
new file mode 100644
index 00000000..d6b9b923
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align/-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+START
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align/-s-t-r-e-t-c-h.html b/api1/pl.treksoft.kvision.panel/-grid-align/-s-t-r-e-t-c-h.html
new file mode 100644
index 00000000..57f9daab
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align/-s-t-r-e-t-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+STRETCH
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-align/index.html b/api1/pl.treksoft.kvision.panel/-grid-align/index.html
new file mode 100644
index 00000000..deaa1d03
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-align/index.html
@@ -0,0 +1,61 @@
+
+
+
+enum class GridAlign
+CSS grid alignment options.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
COLUMNDENSE
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-flow/-c-o-l-u-m-n.html b/api1/pl.treksoft.kvision.panel/-grid-flow/-c-o-l-u-m-n.html
new file mode 100644
index 00000000..e4a7ff3f
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-flow/-c-o-l-u-m-n.html
@@ -0,0 +1,14 @@
+
+
+
+COLUMN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-flow/-r-o-w-d-e-n-s-e.html b/api1/pl.treksoft.kvision.panel/-grid-flow/-r-o-w-d-e-n-s-e.html
new file mode 100644
index 00000000..515a5532
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-flow/-r-o-w-d-e-n-s-e.html
@@ -0,0 +1,14 @@
+
+
+
+ROWDENSE
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-flow/-r-o-w.html b/api1/pl.treksoft.kvision.panel/-grid-flow/-r-o-w.html
new file mode 100644
index 00000000..0be1329f
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-flow/-r-o-w.html
@@ -0,0 +1,14 @@
+
+
+
+ROW
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-flow/index.html b/api1/pl.treksoft.kvision.panel/-grid-flow/index.html
new file mode 100644
index 00000000..9d70639b
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-flow/index.html
@@ -0,0 +1,61 @@
+
+
+
+enum class GridFlow
+CSS grid flow options.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/-e-n-d.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-e-n-d.html
new file mode 100644
index 00000000..e0401564
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+END
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-a-r-o-u-n-d.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-a-r-o-u-n-d.html
new file mode 100644
index 00000000..a8eca9e1
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-a-r-o-u-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+SPACEAROUND
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-b-e-t-w-e-e-n.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-b-e-t-w-e-e-n.html
new file mode 100644
index 00000000..957c0977
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-b-e-t-w-e-e-n.html
@@ -0,0 +1,14 @@
+
+
+
+SPACEBETWEEN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-e-v-e-n-l-y.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-e-v-e-n-l-y.html
new file mode 100644
index 00000000..a232a24d
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-p-a-c-e-e-v-e-n-l-y.html
@@ -0,0 +1,14 @@
+
+
+
+SPACEEVENLY
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-t-a-r-t.html
new file mode 100644
index 00000000..39cd1e4c
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+START
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-t-r-e-t-c-h.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-t-r-e-t-c-h.html
new file mode 100644
index 00000000..14ba8aff
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/-s-t-r-e-t-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+STRETCH
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify-content/index.html b/api1/pl.treksoft.kvision.panel/-grid-justify-content/index.html
new file mode 100644
index 00000000..c0ff90f8
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify-content/index.html
@@ -0,0 +1,82 @@
+
+
+
+enum class GridJustifyContent
+CSS grid content justification options.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify/-e-n-d.html b/api1/pl.treksoft.kvision.panel/-grid-justify/-e-n-d.html
new file mode 100644
index 00000000..5396b32d
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify/-e-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+END
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify/-s-t-a-r-t.html b/api1/pl.treksoft.kvision.panel/-grid-justify/-s-t-a-r-t.html
new file mode 100644
index 00000000..d1b879fb
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify/-s-t-a-r-t.html
@@ -0,0 +1,14 @@
+
+
+
+START
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify/-s-t-r-e-t-c-h.html b/api1/pl.treksoft.kvision.panel/-grid-justify/-s-t-r-e-t-c-h.html
new file mode 100644
index 00000000..c2aa3bb8
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify/-s-t-r-e-t-c-h.html
@@ -0,0 +1,14 @@
+
+
+
+STRETCH
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-justify/index.html b/api1/pl.treksoft.kvision.panel/-grid-justify/index.html
new file mode 100644
index 00000000..3b7d2431
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-justify/index.html
@@ -0,0 +1,61 @@
+
+
+
+enum class GridJustify
+CSS grid justification options.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
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)
+
+autoColumns
- grid auto columns
+templateColumns
- grid columns template
+templateRows
- grid rows template
+templateAreas
- grid areas template
+justifyItems
- grid items justification
+alignItems
- grid items alignment
+justifyContent
- flexbox content justification
+alignContent
- flexbox content alignment
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
open fun addAll(children: List<Component>): GridPanel
+Overrides SimplePanel.addAll
+Adds a list of components to the current container.
+
+children
- list of child components
Return
+current container
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.
+
+columnStart
- number of starting column
+rowStart
- number of starting row
+columnEnd
- number of ending column
+rowEnd
- number of ending row
+justifySelf
- child self justification
+alignSelf
- child self alignment
+classes
- a set of CSS class names
Return
+current container
open fun add(child: Component): GridPanel
+Overrides SimplePanel.add
+Adds given component to the current container.
+Return
+current container
var alignContent: GridAlignContent?
+CSS grid content alignment.
+Getter
+
CSS grid content alignment.
+ +Setter
+
CSS grid content alignment.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-grid-panel/align-items.html b/api1/pl.treksoft.kvision.panel/-grid-panel/align-items.html new file mode 100644 index 00000000..a2d50861 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/auto-columns.html b/api1/pl.treksoft.kvision.panel/-grid-panel/auto-columns.html new file mode 100644 index 00000000..d6c9a818 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/auto-flow.html b/api1/pl.treksoft.kvision.panel/-grid-panel/auto-flow.html new file mode 100644 index 00000000..a8bdd03f --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/auto-rows.html b/api1/pl.treksoft.kvision.panel/-grid-panel/auto-rows.html new file mode 100644 index 00000000..bd15860f --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/column-gap.html b/api1/pl.treksoft.kvision.panel/-grid-panel/column-gap.html new file mode 100644 index 00000000..a5767da3 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/get-sn-style.html b/api1/pl.treksoft.kvision.panel/-grid-panel/get-sn-style.html new file mode 100644 index 00000000..7cc9dc49 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/index.html b/api1/pl.treksoft.kvision.panel/-grid-panel/index.html new file mode 100644 index 00000000..56fac285 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-grid-panel/index.html @@ -0,0 +1,260 @@ + + + +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. + |
+
var justifyContent: GridJustifyContent?
+CSS grid content justification.
+Getter
+
CSS grid content justification.
+ +Setter
+
CSS grid content justification.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-grid-panel/justify-items.html b/api1/pl.treksoft.kvision.panel/-grid-panel/justify-items.html new file mode 100644 index 00000000..d2a8d1e9 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/remove-all.html b/api1/pl.treksoft.kvision.panel/-grid-panel/remove-all.html new file mode 100644 index 00000000..3406e020 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/template-areas.html b/api1/pl.treksoft.kvision.panel/-grid-panel/template-areas.html new file mode 100644 index 00000000..8cc09bb2 --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/template-columns.html b/api1/pl.treksoft.kvision.panel/-grid-panel/template-columns.html new file mode 100644 index 00000000..0d1923ac --- /dev/null +++ b/api1/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/api1/pl.treksoft.kvision.panel/-grid-panel/template-rows.html b/api1/pl.treksoft.kvision.panel/-grid-panel/template-rows.html new file mode 100644 index 00000000..95a8f91c --- /dev/null +++ b/api1/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.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-grid-size/-l-g.html b/api1/pl.treksoft.kvision.panel/-grid-size/-l-g.html new file mode 100644 index 00000000..0cac87f9 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-grid-size/-l-g.html @@ -0,0 +1,14 @@ + + + +LG
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-size/-m-d.html b/api1/pl.treksoft.kvision.panel/-grid-size/-m-d.html
new file mode 100644
index 00000000..f04d334b
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-size/-m-d.html
@@ -0,0 +1,14 @@
+
+
+
+MD
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-size/-s-m.html b/api1/pl.treksoft.kvision.panel/-grid-size/-s-m.html
new file mode 100644
index 00000000..8b960a07
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-size/-s-m.html
@@ -0,0 +1,14 @@
+
+
+
+SM
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-size/-x-s.html b/api1/pl.treksoft.kvision.panel/-grid-size/-x-s.html
new file mode 100644
index 00000000..1527bae4
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-size/-x-s.html
@@ -0,0 +1,14 @@
+
+
+
+XS
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-size/index.html b/api1/pl.treksoft.kvision.panel/-grid-size/index.html
new file mode 100644
index 00000000..77c28afc
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-size/index.html
@@ -0,0 +1,61 @@
+
+
+
+enum class GridSize
+Bootstrap grid sizes.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
GridWrapper(delegate: 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())
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-grid-wrapper/get-sn-style.html b/api1/pl.treksoft.kvision.panel/-grid-wrapper/get-sn-style.html
new file mode 100644
index 00000000..a4a3f150
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-grid-wrapper/get-sn-style.html
@@ -0,0 +1,18 @@
+
+
+
+protected 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
class GridWrapper : WidgetWrapper
++ + | +
+GridWrapper(delegate: 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()) |
+
+ + | +
+open var visible: Boolean |
+
+ + | +
+fun getSnStyle(): List<StringPair>
+Returns the list of String pairs defining CSS style attributes and their values. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
HPanel(wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (HPanel.() -> Unit)? = null)
+
+justify
- flexbox content justification
+alignItems
- flexbox items alignment
+spacing
- spacing between columns/rows
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
fun Container.hPanel(wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (HPanel.() -> Unit)? = null): HPanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-h-panel/index.html b/api1/pl.treksoft.kvision.panel/-h-panel/index.html new file mode 100644 index 00000000..c0e9441f --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-h-panel/index.html @@ -0,0 +1,166 @@ + + + +open class HPanel : FlexPanel
+The container with horizontal layout.
+This is a special case of the flexbox layout.
++ + | +
+HPanel(wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (HPanel.() -> 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 Container.hPanel(wrap: FlexWrap? = null, justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (HPanel.() -> Unit)? = null): HPanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
ResponsiveGridPanel(gridSize: GridSize = GridSize.MD, rows: Int = 0, cols: Int = 0, align: Align? = null, classes: Set<String> = setOf(), init: (ResponsiveGridPanel.() -> Unit)? = null)
+
+align
- text align of grid cells
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
open fun addAll(children: List<Component>): ResponsiveGridPanel
+Overrides SimplePanel.addAll
+Adds a list of components to the current container.
+
+children
- list of child components
Return
+current container
open fun add(child: Component, col: Int, row: Int, size: Int = 0, offset: Int = 0): ResponsiveGridPanel
+Adds child component to the grid.
+Return
+this container
open fun add(child: Component): ResponsiveGridPanel
+Overrides SimplePanel.add
+Adds given component to the current container.
+Return
+current container
var align: Align?
+Text align of grid cells.
+Getter
+
Text align of grid cells.
+ +Setter
+
Text align of grid cells.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-responsive-grid-panel/index.html b/api1/pl.treksoft.kvision.panel/-responsive-grid-panel/index.html new file mode 100644 index 00000000..155484bc --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-responsive-grid-panel/index.html @@ -0,0 +1,161 @@ + + + +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. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
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.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-root/-init-.html b/api1/pl.treksoft.kvision.panel/-root/-init-.html new file mode 100644 index 00000000..783c11cd --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-root/-init-.html @@ -0,0 +1,24 @@ + + + +Root(id: String? = null, element: <ERROR CLASS>? = null, fixed: Boolean = false, init: (Root.() -> Unit)? = null)
+
+id
- ID attribute of element in the main HTML file
+fixed
- if false, the container is rendered with Bootstrap "container-fluid" class,
+otherwise it's rendered with "container" class (default is false)
+init
- an initializer extension function
Constructor
+
fun getRoot(): Root?
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-root/get-sn-class.html b/api1/pl.treksoft.kvision.panel/-root/get-sn-class.html
new file mode 100644
index 00000000..ba9cf8eb
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-root/get-sn-class.html
@@ -0,0 +1,18 @@
+
+
+
+protected fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
class Root : SimplePanel
+Root container.
+This container is bound to the specific element in the main HTML file of the project. +It is always the root of components tree and it is responsible for rendering and updating +Snabbdom virtual DOM.
++ + | +
+Root(id: String? = null, element: <ERROR CLASS>? = null, fixed: Boolean = false, init: (Root.() -> Unit)? = null) |
+
+ + | +
+val isFirstRoot: Boolean |
+
+ + | +
+fun getRoot(): Root? |
+
+ + | +
+fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to 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 remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
val isFirstRoot: Boolean
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-root/render.html b/api1/pl.treksoft.kvision.panel/-root/render.html
new file mode 100644
index 00000000..f5a2f85a
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-root/render.html
@@ -0,0 +1,18 @@
+
+
+
+protected fun render(): VNode
+Overrides SimplePanel.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
SIZE_1
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_2.html b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_2.html
new file mode 100644
index 00000000..adba6913
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_2.html
@@ -0,0 +1,14 @@
+
+
+
+SIZE_2
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_3.html b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_3.html
new file mode 100644
index 00000000..ba429b60
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_3.html
@@ -0,0 +1,14 @@
+
+
+
+SIZE_3
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_4.html b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_4.html
new file mode 100644
index 00000000..1548cf27
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_4.html
@@ -0,0 +1,14 @@
+
+
+
+SIZE_4
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_5.html b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_5.html
new file mode 100644
index 00000000..9ce1c07d
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_5.html
@@ -0,0 +1,14 @@
+
+
+
+SIZE_5
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_6.html b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_6.html
new file mode 100644
index 00000000..0d7b07f5
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side-tab-size/-s-i-z-e_6.html
@@ -0,0 +1,14 @@
+
+
+
+SIZE_6
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side-tab-size/index.html b/api1/pl.treksoft.kvision.panel/-side-tab-size/index.html
new file mode 100644
index 00000000..0a0c817e
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side-tab-size/index.html
@@ -0,0 +1,75 @@
+
+
+
+enum class SideTabSize
+Left or right tab size.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
CENTER
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side/-d-o-w-n.html b/api1/pl.treksoft.kvision.panel/-side/-d-o-w-n.html
new file mode 100644
index 00000000..40b563fc
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side/-d-o-w-n.html
@@ -0,0 +1,14 @@
+
+
+
+DOWN
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side/-l-e-f-t.html b/api1/pl.treksoft.kvision.panel/-side/-l-e-f-t.html
new file mode 100644
index 00000000..ef67765f
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side/-l-e-f-t.html
@@ -0,0 +1,14 @@
+
+
+
+LEFT
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side/-r-i-g-h-t.html b/api1/pl.treksoft.kvision.panel/-side/-r-i-g-h-t.html
new file mode 100644
index 00000000..2c794b99
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side/-r-i-g-h-t.html
@@ -0,0 +1,14 @@
+
+
+
+RIGHT
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side/-u-p.html b/api1/pl.treksoft.kvision.panel/-side/-u-p.html
new file mode 100644
index 00000000..bfe9aa8b
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side/-u-p.html
@@ -0,0 +1,14 @@
+
+
+
+UP
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-side/index.html b/api1/pl.treksoft.kvision.panel/-side/index.html
new file mode 100644
index 00000000..f5f7d147
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-side/index.html
@@ -0,0 +1,68 @@
+
+
+
+enum class Side
+Dock layout directions.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
SimplePanel(classes: Set<String> = setOf(), init: (SimplePanel.() -> Unit)? = null)
+
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
open fun addAll(children: List<Component>): SimplePanel
+Overrides Container.addAll
+Adds a list of components to the current container.
+
+children
- list of child components
Return
+current container
protected fun addInternal(child: Component): SimplePanel
+Protected and final method to add given component to the current container.
+Return
+current container
open fun add(child: Component): SimplePanel
+Overrides Container.add
+Adds given component to the current container.
+Return
+current container
protected open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes.
+Return
+array of children vnodes
open fun getChildren(): List<Component>
+Overrides Container.getChildren
+Returns a list of children of the current container.
+Return
+list of children
open class SimplePanel : Widget, Container
+Basic container class, rendered as a DIV element with all children directly within.
++ + | +
+SimplePanel(classes: Set<String> = setOf(), init: (SimplePanel.() -> Unit)? = null) |
+
+ + | +
+var draggable: Boolean?
+Determines if the current widget is draggable. + |
+
+ + | +
+var eventTarget: Widget? |
+
+ + | +
+var id: String?
+An ID attribute of generated HTML element. + |
+
+ + | +
+var lastLanguage: String? |
+
+ + | +
+open var parent: Container?
+Parent of the current component. + |
+
+ + | +
+var popoverOptions: PopoverOptions? |
+
+ + | +
+var role: String?
+A role attribute of generated HTML element. + |
+
+ + | +
+var surroundingSpan: Boolean |
+
+ + | +
+var title: String?
+A title attribute of generated HTML element. + |
+
+ + | +
+var tooltipOptions: TooltipOptions? |
+
+ + | +
+open var visible: Boolean
+Visibility state of the current component. + |
+
+ + | +
+var vnode: VNode? |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to 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 remove(child: Component): SimplePanel
+Removes given component from 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. + |
+
+ + | +
+open fun addCssClass(css: String): Widget
+Adds given value to the set of CSS classes generated in html code of current component. +open fun addCssClass(css: Style): Widget
+Adds given style object to the set of CSS classes generated in html code of current component. + |
+
+ + | +
+open fun addSurroundingCssClass(css: String): Widget
+Adds given value to the set of CSS classes generated in html code of parent component. +open fun addSurroundingCssClass(css: Style): Widget
+Adds given style object to the set of CSS classes generated in html code of parent component. + |
+
+ + | +
+open fun afterCreate(node: VNode): Unit
+Method called after creating Snabbdom vnode. + |
+
+ + | +
+open fun afterDestroy(): Unit
+Method called after destroying Snabbdom vnode. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+open fun clearDragDropData(): Unit
+Clears D&D data for the current widget. It also makes it not draggable. + |
+
+ + | +
+open fun disablePopover(): Widget
+Disables popover for the current widget. + |
+
+ + | +
+open fun disableTooltip(): Widget
+Disables tooltip for the current widget. + |
+
+ + | +
+open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean? |
+
+ + | +
+open fun enablePopover(options: PopoverOptions = PopoverOptions()): Widget
+Enables popover for the current widget. + |
+
+ + | +
+open fun enableTooltip(options: TooltipOptions = TooltipOptions()): Widget
+Enables tooltip for the current widget. + |
+
+ + | +
+open fun getAttribute(name: String): String?
+Returns the value of an additional attribute. + |
+
+ + | +
+open fun getElement(): Node?
+Returns DOM element bound to the current component. + |
+
+ + | +
+open fun getElementJQuery(): JQuery?
+Returns JQuery element bound to the current component. + |
+
+ + | +
+open fun getElementJQueryD(): dynamic
+Returns JQuery element bound to the current component as a dynamic type. + |
+
+ + | +
+open fun getSnAttrs(): List<StringPair>
+Returns list of element attributes in the form of a List. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun getSnHooks(): Hooks?
+Returns list of hooks in the form of a Snabbdom Hooks object. + |
+
+ + | +
+open fun getSnOn(): On?
+Returns list of event handlers in the form of a Snabbdom On object. + |
+
+ + | +
+open fun hide(): Widget
+Makes current widget invisible. + |
+
+ + | +
+open fun hidePopover(): Widget
+Hides popover for the current widget. + |
+
+ + | +
+open fun hideTooltip(): Widget
+Hides tooltip for the current widget. + |
+
+ + | +
+open operator fun invoke(vararg children: Component): Container
+Operator function for adding children in a DSL style. + |
+
+ + | +
+fun <T> refreshOnUpdate(refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T> + fun <T> refreshOnUpdate(initialValue: T, refreshFunction: (T) -> Unit = { this.refresh() }): Widget.RefreshDelegateProvider<T> |
+
+ + | +
+open fun removeAttribute(name: String): Widget
+Removes the value of additional attribute. + |
+
+ + | +
+open fun removeCssClass(css: String): Widget
+Removes given value from the set of CSS classes generated in html code of current component. +open fun removeCssClass(css: Style): Widget
+Removes given style object from the set of CSS classes generated in html code of current component. + |
+
+ + | +
+open fun removeEventListeners(): Widget
+Removes all event listeners from current widget. + |
+
+ + | +
+open fun removeSurroundingCssClass(css: String): Widget
+Removes given value from the set of CSS classes generated in html code of parent component. +open fun removeSurroundingCssClass(css: Style): Widget
+Removes given style object from the set of CSS classes generated in html code of parent component. + |
+
+ + | +
+open fun render(elementName: String): VNode + open fun render(elementName: String, children: Array<dynamic>): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun setAttribute(name: String, value: String): Widget
+Sets the value of additional attribute. + |
+
+ + | +
+open fun setContextMenu(contextMenu: ContextMenu): Widget
+Sets context menu for the current widget. + |
+
+ + | +
+open fun setDragDropData(format: String, data: String): Unit
+Sets D&D data for the current widget. It also makes it draggable. + |
+
+ + | +
+open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit + open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit
+Sets the current widget as a D&D drop target. + |
+
+ + | +
+open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit
+Sets the current widget as a D&D drop target with helper callback accepting String data. + |
+
+ + | +
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget
+Sets an event listener for current widget, keeping the actual type of component. +open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
+Sets an event listener for current widget. + |
+
+ + | +
+open fun show(): Widget
+Makes current widget visible. + |
+
+ + | +
+open fun showPopover(): Widget
+Shows popover for the current widget. + |
+
+ + | +
+open fun showTooltip(): Widget
+Shows tooltip for the current widget. + |
+
+ + | +
+fun <T> singleRender(block: () -> T): T |
+
+ + | +
+open fun toggleVisible(): Widget
+Toggles visibility of current widget. + |
+
+ + | +
+fun translate(text: String?): String? |
+
+ + | +
+fun Container.simplePanel(classes: Set<String> = setOf(), init: (SimplePanel.() -> Unit)? = null): SimplePanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
+ + | +
+abstract class AbstractText : SimplePanel, StringFormControl
+Base class for form field text components. + |
+
+ + | +
+open class ButtonGroup : SimplePanel
+The Bootstrap button group. + |
+
+ + | +
+open class CheckBox : SimplePanel, BoolFormControl
+The form field component rendered as HTML input type="checkbox". + |
+
+ + | +
+open class DateTime : SimplePanel, DateFormControl
+Form field date/time chooser component. + |
+
+ + | +
+open class DockPanel : SimplePanel
+The container with dock layout (up, down, left, right and center positions). + |
+
+ + | +
+open class DropDown : SimplePanel
+Bootstrap dropdown component. + |
+
+ + | +
+open class FlexPanel : SimplePanel
+The container with CSS flexbox layout support. + |
+
+ + | +
+open class FormPanel<K : Any> : SimplePanel
+Bootstrap form component. + |
+
+ + | +
+open class GridPanel : SimplePanel
+The container with CSS grid layout support. + |
+
+ + | +
+open class Link : SimplePanel
+Link component. + |
+
+ + | +
+open class ListTag : SimplePanel
+HTML list component. + |
+
+ + | +
+open class Modal : SimplePanel
+Configurable modal window based on Bootstrap modal. + |
+
+ + | +
+open class Navbar : SimplePanel
+The Bootstrap Navbar container. + |
+
+ + | +
+open class ProgressBar : SimplePanel
+The Bootstrap progress bar. + |
+
+ + | +
+open class Radio : SimplePanel, BoolFormControl
+The form field component rendered as HTML input type="radio". + |
+
+ + | +
+open class RadioGroup : SimplePanel, StringFormControl
+The form field component rendered as a group of HTML input type="radio" elements with the same name attribute. + |
+
+ + | +
+open class RadioGroupInput : SimplePanel, FormInput
+The input component rendered as a group of HTML input type="radio" elements with the same name attribute. + |
+
+ + | +
+open class ResponsiveGridPanel : SimplePanel
+The container with support for Bootstrap responsive grid layout. + |
+
+ + | +
+class Root : SimplePanel
+Root container. + |
+
+ + | +
+open class Select : SimplePanel, StringFormControl
+The form field component for Select control. + |
+
+ + | +
+open class SelectInput : SimplePanel, FormInput
+The basic component for Select control. + |
+
+ + | +
+open class SelectOptGroup : SimplePanel
+The helper container for adding option groups to Select. + |
+
+ + | +
+open class SelectRemote<T : Any> : SimplePanel, StringFormControl
+The form field component for SelectRemote control. + |
+
+ + | +
+open class SimpleSelect : SimplePanel, StringFormControl
+The form field component for SimpleSelect control. + |
+
+ + | +
+open class SimpleSelectInput : SimplePanel, FormInput
+Simple select component. + |
+
+ + | +
+open class Spinner : SimplePanel, NumberFormControl
+The form field component for spinner control. + |
+
+ + | +
+open class SplitPanel : SimplePanel
+The container with draggable splitter. + |
+
+ + | +
+open class StackPanel : SimplePanel
+The container with only one active (visible) child at any moment. + |
+
+ + | +
+open class Table : SimplePanel
+HTML table component. + |
+
+ + | +
+open class TabPanel : SimplePanel
+The container rendering it's children as tabs. + |
+
+ + | +
+open class Tag : SimplePanel, Template
+HTML tag component. + |
+
+ + | +
+open class Toolbar : SimplePanel
+The Bootstrap toolbar. + |
+
+ + | +
+open class Upload : SimplePanel, KFilesFormControl
+The form field file upload component. + |
+
+ + | +
+open class WidgetWrapper : SimplePanel
+This class allows to wrap a component into separately styled DIV element. + |
+
+ + | +
+open class Window : SimplePanel
+Floating window container. + |
+
open fun removeAll(): SimplePanel
+Overrides Container.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): SimplePanel
+Overrides Container.remove
+Removes given component from the current container.
+Return
+current container
protected open fun render(): VNode
+Overrides Widget.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
fun Container.simplePanel(classes: Set<String> = setOf(), init: (SimplePanel.() -> Unit)? = null): SimplePanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-split-panel/-init-.html b/api1/pl.treksoft.kvision.panel/-split-panel/-init-.html new file mode 100644 index 00000000..0dc3f21e --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-split-panel/-init-.html @@ -0,0 +1,23 @@ + + + +SplitPanel(direction: Direction = Direction.VERTICAL, classes: Set<String> = setOf(), init: (SplitPanel.() -> Unit)? = null)
+
+direction
- direction of the splitter
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
protected open fun childrenVNodes(): Array<VNode>
+Overrides SimplePanel.childrenVNodes
+Returns the array of the children Snabbdom vnodes.
+Return
+array of children vnodes
open class SplitPanel : SimplePanel
+The container with draggable splitter.
+It is required to have exactly two children, for both sides of the splitter. Otherwise it will be +rendered as empty.
++ + | +
+SplitPanel(direction: Direction = Direction.VERTICAL, classes: Set<String> = setOf(), init: (SplitPanel.() -> Unit)? = null) |
+
+ + | +
+open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
+ + | +
+fun addInternal(child: Component): SimplePanel
+Protected and final method to add given component to the current container. + |
+
+ + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
+ + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from 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.splitPanel(direction: Direction = Direction.VERTICAL, classes: Set<String> = setOf(), init: (SplitPanel.() -> Unit)? = null): SplitPanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
fun Container.splitPanel(direction: Direction = Direction.VERTICAL, classes: Set<String> = setOf(), init: (SplitPanel.() -> Unit)? = null): SplitPanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-stack-panel/-init-.html b/api1/pl.treksoft.kvision.panel/-stack-panel/-init-.html new file mode 100644 index 00000000..ff1f57fc --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-stack-panel/-init-.html @@ -0,0 +1,23 @@ + + + +StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: (StackPanel.() -> Unit)? = null)
+
+activateLast
- determines if added component is automatically activated (default true)
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
var activeChild: Component
+The active (visible) child.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-stack-panel/active-index.html b/api1/pl.treksoft.kvision.panel/-stack-panel/active-index.html new file mode 100644 index 00000000..2bffc4bf --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-stack-panel/active-index.html @@ -0,0 +1,21 @@ + + + +var activeIndex: Int
+The index of active (visible) child.
+Getter
+
The index of active (visible) child.
+ +Setter
+
The index of active (visible) child.
+ + + diff --git a/api1/pl.treksoft.kvision.panel/-stack-panel/add-all.html b/api1/pl.treksoft.kvision.panel/-stack-panel/add-all.html new file mode 100644 index 00000000..68dd599c --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-stack-panel/add-all.html @@ -0,0 +1,21 @@ + + + +open fun addAll(children: List<Component>): StackPanel
+Overrides SimplePanel.addAll
+Adds a list of components to the current container.
+
+children
- list of child components
Return
+current container
open fun add(panel: Component, route: String): StackPanel
+Adds given component and bounds it's activation to a given route.
+
+route
- JavaScript route to activate given child
Return
+current container
open fun add(child: Component): StackPanel
+Overrides SimplePanel.add
+Adds given component to the current container.
+Return
+current container
protected open fun childrenVNodes(): Array<VNode>
+Overrides SimplePanel.childrenVNodes
+Returns the array of the children Snabbdom vnodes.
+Return
+array of children vnodes
open class StackPanel : SimplePanel
+The container with only one active (visible) child at any moment.
+It supports activating children by a JavaScript route.
++ + | +
+StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: (StackPanel.() -> Unit)? = null) |
+
+ + | +
+var activeChild: Component
+The active (visible) child. + |
+
+ + | +
+var activeIndex: Int
+The index of active (visible) child. + |
+
+ + | +
+open fun add(panel: Component, route: String): StackPanel
+Adds given component and bounds it's activation to a given route. +open fun add(child: Component): StackPanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): StackPanel
+Adds a list of components to the current container. + |
+
+ + | +
+open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes. + |
+
+ + | +
+open fun remove(child: Component): StackPanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): StackPanel
+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 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.stackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: (StackPanel.() -> Unit)? = null): StackPanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
open fun removeAll(): StackPanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): StackPanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
fun Container.stackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: (StackPanel.() -> Unit)? = null): StackPanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-tab-panel/-init-.html b/api1/pl.treksoft.kvision.panel/-tab-panel/-init-.html new file mode 100644 index 00000000..76a3400c --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-tab-panel/-init-.html @@ -0,0 +1,27 @@ + + + +TabPanel(tabPosition: TabPosition = TabPosition.TOP, sideTabSize: SideTabSize = SideTabSize.SIZE_3, scrollableTabs: Boolean = false, classes: Set<String> = setOf(), init: (TabPanel.() -> Unit)? = null)
+
+scrollableTabs
- determines if tabs are scrollable (default: false)
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
var activeIndex: Int
+The index of active (visible) tab.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-tab-panel/add-all.html b/api1/pl.treksoft.kvision.panel/-tab-panel/add-all.html new file mode 100644 index 00000000..73a08956 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-tab-panel/add-all.html @@ -0,0 +1,21 @@ + + + +open fun addAll(children: List<Component>): TabPanel
+Overrides SimplePanel.addAll
+Adds a list of components to the current container.
+
+children
- list of child components
Return
+current container
open fun addTab(title: String, panel: Component, icon: String? = null, image: ResString? = null, closable: Boolean = false, route: String? = null): TabPanel
+Adds new tab and optionally bounds it's activation to a given route.
+
+closable
- determines if this tab is closable
+route
- JavaScript route to activate given child
Return
+current container
open fun add(child: Component): TabPanel
+Overrides SimplePanel.add
+Adds given component to the current container.
+Return
+current container
open fun getChildComponent(index: Int): Component?
+Returns child component by tab index.
+open fun getNavComponent(: Int): Tag?
+Returns tab header component by tab index.
+open class TabPanel : SimplePanel
+The container rendering it's children as tabs.
+It supports activating children by a JavaScript route.
++ + | +
+TabPanel(tabPosition: TabPosition = TabPosition.TOP, sideTabSize: SideTabSize = SideTabSize.SIZE_3, scrollableTabs: Boolean = false, classes: Set<String> = setOf(), init: (TabPanel.() -> Unit)? = null) |
+
+ + | +
+var activeIndex: Int
+The index of active (visible) tab. + |
+
+ + | +
+open fun add(child: Component): TabPanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): TabPanel
+Adds a list of components to the current container. + |
+
+ + | +
+open fun addTab(title: String, panel: Component, icon: String? = null, image: ResString? = null, closable: Boolean = false, route: String? = null): TabPanel
+Adds new tab and optionally bounds it's activation to a given route. + |
+
+ + | +
+open fun getChildComponent(index: Int): Component?
+Returns child component by tab index. + |
+
+ + | +
+open fun getNavComponent(: Int): Tag?
+Returns tab header component by tab index. + |
+
+ + | +
+open fun remove(child: Component): TabPanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): TabPanel
+Removes all children from the current container. + |
+
+ + | +
+open fun removeTab(index: Int): TabPanel
+Removes tab at given index. + |
+
+ + | +
+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.tabPanel(tabPosition: TabPosition = TabPosition.TOP, sideTabSize: SideTabSize = SideTabSize.SIZE_3, scrollableTabs: Boolean = false, classes: Set<String> = setOf(), init: (TabPanel.() -> Unit)? = null): TabPanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
open fun removeAll(): TabPanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun removeTab(index: Int): TabPanel
+Removes tab at given index.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-tab-panel/remove.html b/api1/pl.treksoft.kvision.panel/-tab-panel/remove.html new file mode 100644 index 00000000..9e2a04b0 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-tab-panel/remove.html @@ -0,0 +1,21 @@ + + + +open fun remove(child: Component): TabPanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
fun Container.tabPanel(tabPosition: TabPosition = TabPosition.TOP, sideTabSize: SideTabSize = SideTabSize.SIZE_3, scrollableTabs: Boolean = false, classes: Set<String> = setOf(), init: (TabPanel.() -> Unit)? = null): TabPanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/-tab-position/-l-e-f-t.html b/api1/pl.treksoft.kvision.panel/-tab-position/-l-e-f-t.html new file mode 100644 index 00000000..63f73092 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/-tab-position/-l-e-f-t.html @@ -0,0 +1,14 @@ + + + +LEFT
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-tab-position/-r-i-g-h-t.html b/api1/pl.treksoft.kvision.panel/-tab-position/-r-i-g-h-t.html
new file mode 100644
index 00000000..708d9a54
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-tab-position/-r-i-g-h-t.html
@@ -0,0 +1,14 @@
+
+
+
+RIGHT
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-tab-position/-t-o-p.html b/api1/pl.treksoft.kvision.panel/-tab-position/-t-o-p.html
new file mode 100644
index 00000000..14d6c15a
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-tab-position/-t-o-p.html
@@ -0,0 +1,14 @@
+
+
+
+TOP
+
+
diff --git a/api1/pl.treksoft.kvision.panel/-tab-position/index.html b/api1/pl.treksoft.kvision.panel/-tab-position/index.html
new file mode 100644
index 00000000..c4e343a6
--- /dev/null
+++ b/api1/pl.treksoft.kvision.panel/-tab-position/index.html
@@ -0,0 +1,54 @@
+
+
+
+enum class TabPosition
+Tab position.
++ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
VPanel(justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (VPanel.() -> Unit)? = null)
+
+justify
- flexbox content justification
+alignItems
- flexbox items alignment
+spacing
- spacing between columns/rows
+classes
- a set of CSS class names
+init
- an initializer extension function
Constructor
+
open class VPanel : FlexPanel
+The container with vertical layout.
+This is a special case of the flexbox layout.
++ + | +
+VPanel(justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (VPanel.() -> 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 Container.vPanel(justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (VPanel.() -> Unit)? = null): VPanel
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
fun Container.vPanel(justify: FlexJustify? = null, alignItems: FlexAlignItems? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: (VPanel.() -> Unit)? = null): VPanel
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.panel/index.html b/api1/pl.treksoft.kvision.panel/index.html new file mode 100644 index 00000000..06599ad0 --- /dev/null +++ b/api1/pl.treksoft.kvision.panel/index.html @@ -0,0 +1,260 @@ + + + +Rich set of container classes, supporting both simple use cases and sophisticated layouts (including CSS flexbox, +CSS grid and Bootstrap responsive 12 columns gid).
++ + | +
+enum class Direction
+Split panel direction. + |
+
+ + | +
+open class DockPanel : SimplePanel
+The container with dock layout (up, down, left, right and center positions). + |
+
+ + | +
+enum class FlexAlignContent
+CSS flexbox content alignment options. + |
+
+ + | +
+enum class FlexAlignItems
+CSS flexbox alignments options. + |
+
+ + | +
+enum class FlexDir
+CSS flexbox directions. + |
+
+ + | +
+enum class FlexJustify
+CSS flexbox justification options. + |
+
+ + | +
+open class FlexPanel : SimplePanel
+The container with CSS flexbox layout support. + |
+
+ + | +
+enum class FlexWrap
+CSS flexbox wrap modes. + |
+
+ + | +
+enum class GridAlign
+CSS grid alignment options. + |
+
+ + | +
+enum class GridAlignContent
+CSS grid content alignment options. + |
+
+ + | +
+enum class GridFlow
+CSS grid flow options. + |
+
+ + | +
+enum class GridJustify
+CSS grid justification options. + |
+
+ + | +
+enum class GridJustifyContent
+CSS grid content justification options. + |
+
+ + | +
+open class GridPanel : SimplePanel
+The container with CSS grid layout support. + |
+
+ + | +
+enum class GridSize
+Bootstrap grid sizes. + |
+
+ + | +
+class GridWrapper : WidgetWrapper |
+
+ + | +
+open class HPanel : FlexPanel
+The container with horizontal layout. + |
+
+ + | +
+open class ResponsiveGridPanel : SimplePanel
+The container with support for Bootstrap responsive grid layout. + |
+
+ + | +
+class Root : SimplePanel
+Root container. + |
+
+ + | +
+enum class Side
+Dock layout directions. + |
+
+ + | +
+enum class SideTabSize
+Left or right tab size. + |
+
+ + | +
+open class SimplePanel : Widget, Container
+Basic container class, rendered as a DIV element with all children directly within. + |
+
+ + | +
+open class SplitPanel : SimplePanel
+The container with draggable splitter. + |
+
+ + | +
+open class StackPanel : SimplePanel
+The container with only one active (visible) child at any moment. + |
+
+ + | +
+open class TabPanel : SimplePanel
+The container rendering it's children as tabs. + |
+
+ + | +
+enum class TabPosition
+Tab position. + |
+
+ + | +
+open class VPanel : FlexPanel
+The container with vertical layout. + |
+