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

add

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

open fun add(child: Component): StackPanel

Overrides SimplePanel.add

Adds given component to the current container.

Parameters

child - child component

Return
current container