addTab

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

Creates and adds new tab component.

Return

current container

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