From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- .../-stack-panel/index.html | 673 ++++++++++----------- 1 file changed, 318 insertions(+), 355 deletions(-) (limited to 'api/pl.treksoft.kvision.panel/-stack-panel/index.html') diff --git a/api/pl.treksoft.kvision.panel/-stack-panel/index.html b/api/pl.treksoft.kvision.panel/-stack-panel/index.html index 8b038705..2a2d12b5 100644 --- a/api/pl.treksoft.kvision.panel/-stack-panel/index.html +++ b/api/pl.treksoft.kvision.panel/-stack-panel/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.panel / StackPanel

StackPanel

-open class StackPanel : SimplePanel +(js) open class StackPanel : SimplePanel

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

It supports activating children by a JavaScript route.

Constructors

@@ -16,7 +16,8 @@ -

<init>

+(js) +

<init>

StackPanel(activateLast: Boolean = true, classes: Set<String> = setOf(), init: (StackPanel.() -> Unit)? = null) @@ -28,33 +29,21 @@ -

activeChild

+(js) +

activeChild

-var activeChild: Component

The active (visible) child.

- +var activeChild: Component -

activeIndex

+(js) +

activeIndex

-var activeIndex: Int

The index of active (visible) child.

- - - - -

Inherited Properties

- - - - - +var activeIndex: Int
-

children

-
-val children: MutableList<Component>
@@ -63,82 +52,50 @@ -

add

+(js) +

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 +open fun add(panel: Component, route: String): StackPanel

Adds given component to the current container.

- +open fun add(child: Component): StackPanel -

addAll

+(js) +

addAll

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

Adds a list of components to the current container.

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

childrenVNodes

+(js) +

childrenVNodes

-open fun childrenVNodes(): Array<VNode>

Returns the array of the children Snabbdom vnodes.

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

remove

+(js) +

remove

-open fun remove(child: Component): StackPanel

Removes given component from the current container.

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

removeAll

+(js) +

removeAll

-open fun removeAll(): StackPanel

Removes all children from the current container.

- - - - -

Inherited Functions

- - - - - - - - - - - - - +open fun removeAll(): StackPanel
-

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.

-
@@ -147,24 +104,27 @@ -

changeFlow

+(js) +

changeFlow

-val <T : Widget> T.changeFlow: <ERROR CLASS><T> +val <T : Widget> T.changeFlow: Flow<T> -

clickFlow

+(js) +

clickFlow

-val <T : Widget> T.clickFlow: <ERROR CLASS><T> +val <T : Widget> T.clickFlow: Flow<T> -

inputFlow

+(js) +

inputFlow

-val <T : Widget> T.inputFlow: <ERROR CLASS><T> +val <T : Widget> T.inputFlow: Flow<T> @@ -173,867 +133,870 @@ -

addBsBgColor

+(js) +

addBsBgColor

fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit -

addBsBorder

+(js) +

addBsBorder

fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit -

addBsClearfix

+(js) +

addBsClearfix

fun Component.addBsClearfix(): Unit -

addBsColor

+(js) +

addBsColor

fun Component.addBsColor(bsColor: BsColor): Unit -

addBsRounded

+(js) +

addBsRounded

fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit -

bold

+(js) +

bold

-fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold

DSL builder extension function.

- +fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold -

button

+(js) +

button

-fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button

DSL builder extension function.

- +fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button -

buttonGroup

+(js) +

buttonGroup

-fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup

DSL builder extension function.

- +fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup -

canvas

+(js) +

canvas

-fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas

DSL builder extension function.

- +fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas -

chart

+(js) +

chart

-fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart

DSL builder extension function.

- +fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart -

checkBox

+(js) +

checkBox

-fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null):