API reference
@salmonui/navigation/tree-view
25 exported symbols: 1 component, 1 function, 19 interfaces, 3 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/navigation/tree-view';Components
TreeViewA hierarchical list (WAI-ARIA APG Tree View) over data, virtualized by default. ref receives the TreeViewApi.
Functions
moveTreeItemsMoves the items ids (taken from data, or from items when they come from another tree) before, after or into the item targetId.
Interfaces
MoveTreeItemsOptionsTreeViewApiCommands props cannot express (ref).TreeViewBeforeCheckedChangeEventTreeViewBeforeExpandedChangeEventTreeViewBeforeMoveEventTreeViewBeforeRenameEventTreeViewBeforeSelectedChangeEventTreeViewCancelableEventA cancellable onBefore* event: preventDefault() cancels the action.TreeViewCheckedChangeEventTreeViewExpandedChangeEventTreeViewItemClickEventTreeViewItemContextrenderItem context: the rendered item and its state.TreeViewItemInfoapi.getItem(id).TreeViewLinkPropsProps a link item passes to renderLink (spread them on the link element).TreeViewLocaleTextStatic texts of TreeView; {param} templates. Plain JSON, safe to pass from a server component.TreeViewMoveEventTreeViewPropsTreeViewRenameEventTreeViewSelectedChangeEvent
Types
TreeViewDropPositionWhere a moved item lands relative to the target.TreeViewEventSourceWhat caused an action.TreeViewKeyAn item id (getItemId).