kvision / pl.treksoft.kvision.panel / StackPanel / add

add

(js) open fun add(panel: Component, route: String): StackPanel

Adds given component and bounds it's activation to a given route.

Parameters

panel - child component

route - JavaScript route to activate given child

Return
current container

(js) open fun add(child: Component): StackPanel

Adds given component to the current container.

Parameters

child - child component

Return
current container