frontend-collective / react-sortable-tree

Drag-and-drop sortable component for nested data and hierarchies
https://frontend-collective.github.io/react-sortable-tree/
MIT License
4.9k stars 897 forks source link

getter functions for custom objects #914

Open luchobarreto opened 3 years ago

luchobarreto commented 3 years ago

New Feature

Example:

<SortableTree treeData={customArray} getChildren={ ({ nodes }) => nodes } getParentId={ ({ parentId }) => parentId } ... />