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()) |
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. |