import{_ as e,a,b as r,ag as o}from"./chunks/framework.BcrMLAmg.js";const u=JSON.parse('{"title":"TabControl","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/TabControl.md","filePath":"references/elements/TabControl.md","lastUpdated":1757844696000}'),d={name:"references/elements/TabControl.md"};function n(l,t,i,b,s,c){return r(),a("div",null,t[0]||(t[0]=[o('
The TabControl is a container that provides tabbed interface functionality
Extends: Container
| Property | Type | Default | Description |
|---|---|---|---|
| activeTab | number | The | currently active tab ID |
| tabHeight | number | Height | of the tab header area |
| tabs | table | List | of tab definitions |
| 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 |
| Method | Returns | Description |
|---|---|---|
| TabControl:newTab | table | Creates a new tab handler proxy |
| TabControl:setTab | TabControl | Sets an element to belong to a specific tab |
| TabControl:addElement | table | Adds an element to the TabControl and assigns it to the active tab |
| TabControl:setActiveTab | - | Sets the active tab |
| TabControl:setCursor | - | Sets the cursor position; accounts for tab header offset when delegating to parent |
returns a proxy for adding elements to the tab
title string The title of the tabtable tabHandler The tab handler proxy for adding elements to the new tabelement table The element to assign to a tabtabId number The ID of the tab to assign the element toTabControl self For method chainingelementType string The type of element to addtabId number Optional tab ID, defaults to active tabtable element The created elementtabId number The ID of the tab to activate