The link component to use when a nav item is clicked. This defaults to the
Link
component from @react-md/link
, but can also be a Link
from
react-router
or another routing library.
Boolean if multiple items within the tree can be selected at once.
The navigation items to use that will be passed to the Tree
component
from @react-md/tree
A function to call when the user presses the asterisk key (*) that will expand all tree items at the same level as the currently focused item.
The list of selected ids within the tree. If you only want to allow a
single item to be selected at a time within a tree, keep this as either an
empty list (no selections) or a single itemId
.
A function to call that will update the expandedIds
to collapse or expand
a clicked item.
A function to call that will update the selectedIds
to include itemId
of the newly selected tree item. This will be triggered when:
Note: If you are using the useTreeItemSelection
hook, this will always
cause the selectedIds
to be a list of just the selected itemId
unless
the multiSelect
(second argument) is enabled.
A function to call that will update the selectedIds
for "batch"
selection updates. This will always be called with a unique list of
itemId
s that contained the previous itemId
s including the new
itemId
s. This will only be called when the multiSelect
prop has been
enabled and:
Shift + Click
s items within the treeControl+Shift+Home
or
Control+Shift+End
Generated using TypeDoc
The list of expanded ids within the tree. These ids should reference
itemId
s for tree items.