Tabbar API overview
Methods
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| afterClose | fires after closing a tab in Tabbar |
| beforeChange | fires before changing the active tab |
| beforeClose | fires before closing a tab in Tabbar |
| change | fires on changing the active tab |
Properties
| Name | Description |
|---|---|
| activeTab | Optional. Sets the currently active tab |
| closable | Optional. Adds close buttons for tabs |
| css | Optional. The name of a CSS class(es) applied to Tabbar |
| disabled | Optional. Makes a tab/tabs disabled |
| mode | Optional. Specifies the mode of displaying a tabbar |
| noContent | Optional. Defines whether tabs contain any content |
| tabAlign | Optional. Sets alignment for tabs |
| tabAutoHeight | Optional. Defines whether the height of tabs is automatically adjusted to the height of the tabbar container |
| tabAutoWidth | Optional. Defines whether the width of tabs is automatically adjusted to the width of the tabbar container |
| tabHeight | Optional. Sets the height of a tab |
| tabWidth | Optional. Sets the width of a tab |
| views | Required. Defines the configuration of tabs |