Tree API
API documentation for Tree component
TreeRoot#
Props#
Defines valid properties in Tree component.
State#
Defines valid state in Tree component.
Exposes#
Defines the methods and properties exposed by Tree component.
Events#
TreeRootExpandedChangeEvent
Event fired when the tree's expanded keys state changes.
| name | type | description |
|---|---|---|
| value | TreeExpandedKeys | The new expanded keys. |
| originalEvent | SyntheticEvent | The original event that triggered the expansion change. |
TreeRootSelectionChangeEvent
Event fired when the tree's selection keys state changes.
| name | type | description |
|---|---|---|
| value | TreeSelectionKeys | TreeCheckboxSelectionKeys | The new selection keys. |
| originalEvent | SyntheticEvent | The original event that triggered the selection change. |
TreeRootValueChangeEvent
Event fired when the tree's value state changes.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of Tree component.
Types#
Instance
Instance of Tree component.
| values |
|---|
| ComponentInstance<TreeRootProps, TreeRootState, TreeRootExposes> |
TreeList#
Props#
Defines valid properties in TreeList component.
Exposes#
Defines the methods and properties exposed by TreeList component.
| name | type | default | description |
|---|---|---|---|
| tree | TreeRootInstance | null | The Tree component instance. |
| treenode | TreeNodeInstance | null | The TreeNode component instance. |
| nodes | unknown[] | null | Array of nodes. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeList component.
| name | type | default | description |
|---|---|---|---|
| root | TreeListPassThroughType<HTMLAttributes<HTMLUListElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeList component.
| values |
|---|
| ComponentInstance<TreeListProps, TreeListState, TreeListExposes> |
TreeNode#
Props#
Defines valid properties in TreeNode component.
Exposes#
Defines the methods and properties exposed by TreeNode component.
Events#
TreeNodeDropEvent
Event fired when a node is dropped on this node.
TreeNodeDragEnterEvent
Event fired when drag enters a node.
TreeNodeDragLeaveEvent
Event fired when drag leaves a node.
TreeNodeValueChangeEvent
Event fired when the tree value changes due to drag-drop.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeNode component.
| name | type | default | description |
|---|---|---|---|
| root | TreeNodePassThroughType<HTMLAttributes<HTMLLIElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeNode component.
| values |
|---|
| ComponentInstance<TreeNodeProps, TreeNodeState, TreeNodeExposes> |
TreeContent#
Props#
Defines valid properties in TreeContent component.
Exposes#
Defines the methods and properties exposed by TreeContent component.
| name | type | default | description |
|---|---|---|---|
| tree | TreeRootInstance | null | The Tree component instance. |
| treenode | TreeNodeInstance | null | The TreeNode component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeContent component.
| name | type | default | description |
|---|---|---|---|
| root | TreeContentPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeContent component.
| values |
|---|
| ComponentInstance<TreeContentProps, TreeContentState, TreeContentExposes> |
TreeToggle#
Props#
Defines valid properties in TreeToggle component.
Exposes#
Defines the methods and properties exposed by TreeToggle component.
| name | type | default | description |
|---|---|---|---|
| tree | TreeRootInstance | null | The Tree component instance. |
| treenode | TreeNodeInstance | null | The TreeNode component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeToggle component.
Types#
Instance
Instance of TreeToggle component.
| values |
|---|
| ComponentInstance<TreeToggleProps, TreeToggleState, TreeToggleExposes> |
TreeLabel#
Props#
Defines valid properties in TreeLabel component.
Exposes#
Defines the methods and properties exposed by TreeLabel component.
| name | type | default | description |
|---|---|---|---|
| tree | TreeRootInstance | null | The Tree component instance. |
| treenode | TreeNodeInstance | null | The TreeNode component instance. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeLabel component.
| name | type | default | description |
|---|---|---|---|
| root | TreeLabelPassThroughType<HTMLAttributes<HTMLSpanElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeLabel component.
| values |
|---|
| ComponentInstance<TreeLabelProps, TreeLabelState, TreeLabelExposes> |
TreeIcon#
Props#
Defines valid properties in TreeIcon component.
Exposes#
Defines the methods and properties exposed by TreeIcon component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeIcon component.
| name | type | default | description |
|---|---|---|---|
| root | TreeIconPassThroughType<SVGAttributes<SVGElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeIcon component.
| values |
|---|
| ComponentInstance<TreeIconProps, TreeIconState, TreeIconExposes> |
TreeHeader#
Props#
Defines valid properties in TreeHeader component.
Exposes#
Defines the methods and properties exposed by TreeHeader component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeHeader component.
| name | type | default | description |
|---|---|---|---|
| root | TreeHeaderPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeHeader component.
| values |
|---|
| ComponentInstance<TreeHeaderProps, TreeHeaderState, TreeHeaderExposes> |
TreeFilter#
Props#
Defines valid properties in TreeFilter component.
Exposes#
Defines the methods and properties exposed by TreeFilter component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeFilter component.
| name | type | default | description |
|---|---|---|---|
| root | TreeFilterPassThroughType<HTMLAttributes<HTMLElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeFilter component.
| values |
|---|
| ComponentInstance<TreeFilterProps, TreeFilterState, TreeFilterExposes> |
TreeFooter#
Props#
Defines valid properties in TreeFooter component.
Exposes#
Defines the methods and properties exposed by TreeFooter component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeFooter component.
| name | type | default | description |
|---|---|---|---|
| root | TreeFooterPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeFooter component.
| values |
|---|
| ComponentInstance<TreeFooterProps, TreeFooterState, TreeFooterExposes> |
TreeEmpty#
Props#
Defines valid properties in TreeEmpty component.
Exposes#
Defines the methods and properties exposed by TreeEmpty component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of TreeEmpty component.
| name | type | default | description |
|---|---|---|---|
| root | TreeEmptyPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of TreeEmpty component.
| values |
|---|
| ComponentInstance<TreeEmptyProps, TreeEmptyState, TreeEmptyExposes> |
useTree#
Props#
Defines valid properties in useTree.
State#
Defines valid state in useTree.
Exposes#
Defines the methods and properties exposed by useTree.
Events#
useTreeExpandedChangeEvent
Event fired when the tree's expanded keys change.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the expansion change. |
| value | TreeExpandedKeys | The new expanded keys. |
useTreeSelectionChangeEvent
Event fired when the tree's selected keys change.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the selection change. |
| value | TreeSelectionKeys | TreeCheckboxSelectionKeys | The new selected keys. |
useTreeToggleEvent
Event fired when a node is toggled.
| name | type | description |
|---|---|---|
| originalEvent | SyntheticEvent | The original event that triggered the toggle. |
| node | TreeNode | The toggled node. |
useTreeExpandEvent
Event fired when a node is expanded.
| name | type | description |
|---|---|---|
| originalEvent | SyntheticEvent | The original event that triggered the toggle. |
| node | TreeNode | The expanded node. |
useTreeCollapseEvent
Event fired when a node is collapsed.
| name | type | description |
|---|---|---|
| originalEvent | SyntheticEvent | The original event that triggered the collapse. |
| node | TreeNode | The collapsed node. |
useTreeClickEvent
Event fired when a node is clicked.
| name | type | description |
|---|---|---|
| originalEvent | KeyboardEvent<Element> | MouseEvent<Element, MouseEvent> | The original event that triggered the click. |
| node | TreeNode | The clicked node. |
useTreeSelectEvent
Event fired when a node is selected.
| name | type | description |
|---|---|---|
| originalEvent | SyntheticEvent<Element, Event> | KeyboardEvent<Element> | MouseEvent<Element, MouseEvent> | The original event that triggered the selection. |
| node | TreeNode | The selected node. |
useTreeUnselectEvent
Event fired when a node is unselected.
useTreeNodeDropEvent
Event fired when a node is dropped.
useTreeDragEnterEvent
Event fired when drag enters the tree.
useTreeDragLeaveEvent
Event fired when drag leaves the tree.
useTreeValueChangeEvent
Event fired when the tree value changes (for drag-drop).
Types#
Instance
Instance of useTree headless.
| values |
|---|
| HeadlessInstance<useTreeProps, useTreeState, useTreeExposes> |