Skip to main content

Tabbar API overview


addTab()adds a new tab into a tabbar
destructor()removes a Tabbar instance and releases occupied resources
disableTab()disables a tab on a page
enableTab()enables a disabled tab
getActive()gets the id of the active tab
getCell()returns the config object of a cell
getId()returns the id of a tab by its index
getWidget()returns the widget attached to Tabbar
isDisabled()checks whether a tab is disabled
paint()repaints a tabbar on a page
removeTab()removes a tab from a tabbar
setActive()sets an active tab


afterClosefires after closing a tab in Tabbar
beforeChangefires before changing the active tab
beforeClosefires before closing a tab in Tabbar
changefires on changing the active tab


activeTabsets the currently active tab
closableadds close buttons for tabs
cssthe name of a CSS class(es) applied to Tabbar
disabledmakes a tab/tabs disabled
modespecifies the mode of displaying a tabbar
noContentdefines whether tabs contain any content
tabAlignsets alignment for tabs
tabAutoHeightdefines whether the height of tabs is automatically adjusted to the height of the tabbar container
tabAutoWidthdefines whether the width of tabs is automatically adjusted to the width of the tabbar container
tabHeightsets the height of a tab
tabWidthsets the width of a tab
viewsdefines the configuration of tabs