Tree View
A composable that displays a tree-like structure of elements in a hierarchical manner.
Parameters
The modifier to apply to this layout.
The tree structure to be displayed.
The state object that holds the state information for the tree view.
The callback to be invoked when an element is clicked.
The callback to be invoked when an element is double-clicked.
The interaction source for handling user input events.
The depth of indentation for nested elements in the tree view, in density-independent pixels.
The background color to be applied to the focused element.
The background color to be applied to the focused and selected element.
The background color to be applied to the selected element.
The delay duration in milliseconds for registering a double-click event based on the platform's behavior.
The key binding actions for handling keyboard events.
The pointer event actions for handling pointer events.
The content to be displayed for the expand/collapse arrow of each tree node, specified as a lambda function with an isOpen parameter.
The content to be displayed for each tree element, specified as a lambda function with a SelectableLazyItemScope receiver and a Tree.Element<T> parameter.
The type of data held by each tree element.