kvision / pl.treksoft.kvision.panel / TabPanel / addTab

addTab

(js) open fun addTab(title: String, panel: Component, icon: String? = null, image: ResString? = null, closable: Boolean = false, route: String? = null): TabPanel

Adds new tab and optionally bounds it's activation to a given route.

Parameters

title - title of the tab

panel - child component

icon - icon of the tab

image - image of the tab

closable - determines if this tab is closable

route - JavaScript route to activate given child

Return
current container