Skip to content

Commit a8670f6

Browse files
committed
more docs fix
1 parent 0ef6065 commit a8670f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/elements/TabControl.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ local log = require("log")
1010
local TabControl = setmetatable({}, Container)
1111
TabControl.__index = TabControl
1212

13-
---@property activeTab number The currently active tab ID
13+
---@property activeTab number nil The currently active tab ID
1414
TabControl.defineProperty(TabControl, "activeTab", {default = nil, type = "number", allowNil = true, canTriggerRender = true, setter = function(self, value)
1515
return value
1616
end})
17-
---@property tabHeight number Height of the tab header area
17+
---@property tabHeight number 1 Height of the tab header area
1818
TabControl.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
2020
TabControl.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
2323
TabControl.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
2525
TabControl.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
2727
TabControl.defineProperty(TabControl, "activeTabTextColor", {default = colors.black, type = "color", canTriggerRender = true})
2828
---@property scrollableTab boolean false Enables scroll mode for tabs if they exceed width
2929
TabControl.defineProperty(TabControl, "scrollableTab", {default = false, type = "boolean", canTriggerRender = true})

0 commit comments

Comments
 (0)