DHTMLX Docs & Samples Explorer

Index
dhtmlxtabbar
API Methods

## dhtmlxTabbar API Methods

### Configuration

enableAutoReSize enable / disable auto adjusting height and width to outer conteiner

enableAutoSize enable disable auto adjusting height and width to inner content

enableContentZone enable/disable content zone (enabled by default)

enableForceHiding enable/disable force hiding mode, solves IE problems with iframes in HTML content, but can cause problems for other dhtmlx components inside tabs

enableScroll enable/disable scrollers ( enabled by default )

enableTabCloseButton enable mode, in which each tab has close button, mode will be applied to the tabs created AFTER command

setImagePath set path to image folder ( not affect already created element until their state changes )

### Tab operations

addTab add tab to TabBar

clearAll reinitialize tabbar

disableTab disable tab in tabbar

enableTab enable tab in tabbar

getActiveTab get id of current active tab

getLabel get label of tab

goToNextTab select tab next to active

goToPrevTab select tab previous to active

hideTab hide tab in tabbar

normalize reformat tabbar to remove tab scrollers

removeTab remove tab from tabbar

setAlign set align of tabs on tabbar

setLabel set label of tab

setTabActive switch tab to active state

showTab show hidden tab in tabbar

tabWindow return window of tab content for iframe based tabbar

### Content operations

forceLoad forcing to load tab in question

loadXML load tabbar from xml file

loadXMLString load tabbar from xml string

setContent set content of tab

setContentHTML set content of tab, as HTML string

setContentHref set content as a href to an external file

setHrefMode set mode of loading external content

### Look and Feel

setCustomStyle set specific colors for specific tab

setMargin set distance between tabs

setOffset set offset before first tab on tabbar

setSize set control size

setSkin set style used for tabbar

setSkinColors allow to set skin specific color, must be used AFTER selecting skin