![]() |
Lysa.ui
0.0
Lysa 3D Engine
|
A hierarchical list widget that displays items in an expandable/collapsible tree structure.
Inherits from: Widget
Lua full name: lysa.ui.TreeView
Public Member Functions | |
| nil | set_resources (resBox: string, resScroll: string, resHandle: string) |
| Reloads the visual style: resBox = row style, resScroll = scroll bar style, resHandle = expand/collapse handle style. More... | |
| nil | remove_all_items () |
| Removes and destroys all items from the tree. More... | |
| TreeViewItem | add_item (parent_or_widget: TreeViewItem|Widget, widget: Widget|nil) |
| Adds an item to the tree. Pass only a widget to add a root-level item; pass a TreeViewItem and a widget to add a child under that item. More... | |
| nil | expand (item: Widget) |
| Programmatically expands the tree item associated with the given content widget. More... | |
|
Reloads the visual style: resBox = row style, resScroll = scroll bar style, resHandle = expand/collapse handle style.
| resBox | string |
| resScroll | string |
| resHandle | string |
|
Removes and destroys all items from the tree.
|
Adds an item to the tree. Pass only a widget to add a root-level item; pass a TreeViewItem and a widget to add a child under that item.
| parent_or_widget | TreeViewItem|Widget |
| widget | Widget|nil |