Skip to content

Commit 310d51b

Browse files
authored
Tree view component (#900)
* WIP creating a TreeView component * Very simple tree displaying * WIP on TreeView types * The state is computing properly * Improved the state and types * Virtualized rendering * Added state inside the useTreeState hook * Selection working * Deselecting nodes * Toggle selection * Expanding/collapsing nodes * Get notifications when changes are made * Only try show the visible items * Experiment to try getting cell animations working * Renamed hook to useTree * Keyboard navigation is working * Proper focus support * Nice selection of the parent by pressing left * End selects the last visible node * Showing how the TreeView can accept a selected id and expanded ids from the outside * The useTree hook now uses selectedId and collapsedIds to make it easier to use * Check the inputs are valid before applying them, ignore if they’re not * Don’t allow a selected node to be hidden by collapsed parents * Nicer API for the onChange callback * Supports animated collapsing of the tree view * Nice smooth scrolling * Removed logs * Removed unused key * Remove intricate estimation * StandardTreeView has lots of good defaults baked in * Allow passing of parent class name in * Work on scrolling to the node… needs a bit of a reshuffle * Just make the TreeView better rather than adding StandardTreeView * Renamed rowVirtualizer to virtualizer * Move the virrtualizer into the hook * Scrolling to selection is working * Added filtering
1 parent 6be1099 commit 310d51b

File tree

4 files changed

+999
-0
lines changed

4 files changed

+999
-0
lines changed

0 commit comments

Comments
 (0)