@@ -10,20 +10,20 @@ local log = require("log")
1010local TabControl = setmetatable ({}, Container )
1111TabControl .__index = TabControl
1212
13- --- @property activeTab number The currently active tab ID
13+ --- @property activeTab number nil The currently active tab ID
1414TabControl .defineProperty (TabControl , " activeTab" , {default = nil , type = " number" , allowNil = true , canTriggerRender = true , setter = function (self , value )
1515 return value
1616end })
17- --- @property tabHeight number Height of the tab header area
17+ --- @property tabHeight number 1 Height of the tab header area
1818TabControl .defineProperty (TabControl , " tabHeight" , {default = 1 , type = " number" , canTriggerRender = true })
19- --- @property tabs table List of tab definitions
19+ --- @property tabs table {} List of tab definitions
2020TabControl .defineProperty (TabControl , " tabs" , {default = {}, type = " table" })
2121
22- --- @property headerBackground color Background color for the tab header area
22+ --- @property headerBackground color gray Background color for the tab header area
2323TabControl .defineProperty (TabControl , " headerBackground" , {default = colors .gray , type = " color" , canTriggerRender = true })
24- --- @property activeTabBackground color Background color for the active tab
24+ --- @property activeTabBackground color white Background color for the active tab
2525TabControl .defineProperty (TabControl , " activeTabBackground" , {default = colors .white , type = " color" , canTriggerRender = true })
26- --- @property activeTabTextColor color Foreground color for the active tab text
26+ --- @property activeTabTextColor color black Foreground color for the active tab text
2727TabControl .defineProperty (TabControl , " activeTabTextColor" , {default = colors .black , type = " color" , canTriggerRender = true })
2828--- @property scrollableTab boolean false Enables scroll mode for tabs if they exceed width
2929TabControl .defineProperty (TabControl , " scrollableTab" , {default = false , type = " boolean" , canTriggerRender = true })
0 commit comments