Skip to main content

Tabbar API overview

Methods#

NameDescription
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

Events#

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

Properties#

NameDescription
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