Refactor documentation for Container, Table, and Tree elements to improve clarity and usage examples

This commit is contained in:
Robert Jelic
2025-10-30 08:40:14 +01:00
parent fa25007de6
commit 83c27d824f
3 changed files with 133 additions and 12 deletions

View File

@@ -6,13 +6,7 @@ local split = require("libraries/utils").split
---@configDescription The container class. It is a visual element that can contain other elements. It is the base class for all containers
---@configDefault true
--- A fundamental layout element that manages child UI components. Containers handle element organization, event propagation,
--- rendering hierarchy, and coordinate space management. They serve as the backbone of Basalt's UI structure by providing:
--- - Child element management and organization
--- - Event bubbling and distribution
--- - Visibility calculations and clipping
--- - Focus management
--- - Coordinate space transformation
--- A fundamental layout element that manages child UI components. Containers handle element organization, event propagation, rendering hierarchy, and coordinate space management.
---@class Container : VisualElement
local Container = setmetatable({}, VisualElement)
Container.__index = Container