frontend-collective / frontend-collective/react-sortable-tree

Insert node at specific index under parent node.Iindex

Open
#930 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

I am using react-sortable-tree in my application to create a funnel. I have a use case where I have a two buttons on child node to create another node under and above it. I need a method where I can pass parentKey and index so that new node is create under parent at specific index.

![image](https://user-images.githubusercontent.com/26850050/177040891-7870a4c6-44c1-47e7-81f0-2c81916741ae.png)

I did not find any function like addNodeUnderParentAtIndex which can do so.

Any help on how this can be done is appreciated!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.