deploy: f47ae21fbe
This commit is contained in:
@@ -13,6 +13,8 @@ Extends: `Container`
|
||||
|headerBackground|color|Background|color for the tab header area|
|
||||
|activeTabBackground|color|Background|color for the active tab|
|
||||
|activeTabTextColor|color|Foreground|color for the active tab text|
|
||||
|scrollableTab|boolean|Enables|scroll mode for tabs if they exceed width|
|
||||
|tabScrollOffset|number|Current|scroll offset for tabs in scrollable mode|
|
||||
|
||||
## Functions
|
||||
|
||||
@@ -22,6 +24,7 @@ Extends: `Container`
|
||||
|[TabControl:setTab](#tabcontrol-settab-element-tabid)|TabControl|Sets an element to belong to a specific tab|
|
||||
|[TabControl:addElement](#tabcontrol-addelement-elementtype-tabid)|table|Adds an element to the TabControl and assigns it to the active tab|
|
||||
|[TabControl:setActiveTab](#tabcontrol-setactivetab-tabid)|-|Sets the active tab|
|
||||
|[TabControl:scrollTabs](#tabcontrol-scrolltabs-direction)|TabControl|Scrolls the tab header left or right if scrollableTab is enabled|
|
||||
|[TabControl:setCursor](#tabcontrol-setcursor)|-|Sets the cursor position; accounts for tab header offset when delegating to parent|
|
||||
|
||||
## TabControl:newTab(title)
|
||||
@@ -54,4 +57,14 @@ returns a proxy for adding elements to the tab
|
||||
### Parameters
|
||||
* `tabId` `number` The ID of the tab to activate
|
||||
|
||||
## TabControl:scrollTabs(direction)
|
||||
|
||||
Scrolls the tab header left or right if scrollableTab is enabled
|
||||
|
||||
### Parameters
|
||||
* `direction` `number` -1 to scroll left, 1 to scroll right
|
||||
|
||||
### Returns
|
||||
* `TabControl` `self` For method chaining
|
||||
|
||||
## TabControl:setCursor()
|
||||
Reference in New Issue
Block a user