From d8cd67062b8de6e8398dc6dfd00d201200c82414 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 9 Feb 2018 13:40:35 +0100 Subject: API doc and readme --- .../-stack-panel/index.html | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 docs/api/pl.treksoft.kvision.panel/-stack-panel/index.html (limited to 'docs/api/pl.treksoft.kvision.panel/-stack-panel/index.html') diff --git a/docs/api/pl.treksoft.kvision.panel/-stack-panel/index.html b/docs/api/pl.treksoft.kvision.panel/-stack-panel/index.html new file mode 100644 index 00000000..858201c6 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.panel/-stack-panel/index.html @@ -0,0 +1,125 @@ + + + +StackPanel - kvision + + + +kvision / pl.treksoft.kvision.panel / StackPanel
+
+

StackPanel

+open class StackPanel : SimplePanel +

The container with only one active (visible) child at any moment.

+

It supports activating children by a JavaScript route.

+

Constructors

+ + + + + + + +
+

<init>

+
+StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf())
+

Properties

+ + + + + + + +
+

activeIndex

+
+var activeIndex: Int +

The index of active (visible) child.

+
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + +
+

add

+
+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.

+
+

addAll

+
+open fun addAll(children: List<Component>): StackPanel +

Adds a list of components to the current container.

+
+

childrenVNodes

+
+open fun childrenVNodes(): Array<VNode> +

Returns the array of the children Snabbdom vnodes.

+
+

remove

+
+open fun remove(child: Component): StackPanel +

Removes given component from the current container.

+
+

removeAll

+
+open fun removeAll(): StackPanel +

Removes all children from the current container.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + +
+

addInternal

+
+fun addInternal(child: Component): SimplePanel +

Protected and final method to add given component to the current container.

+
+

getChildren

+
+open fun getChildren(): List<Component> +

Returns a list of children of the current container.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+ + -- cgit