Atomic docs

imgui.TreeNode

imgui.TreeNode(label: string, flags: number?): boolean

A collapsible node. TreePop is required only when this returns true.

Example

lua
if imgui.TreeNode("options") then
    imgui.Text("inside")
    imgui.TreePop()
end
↑