elbywan / bosket

Collection of tree view components for front-end frameworks. :deciduous_tree:

Home Page:https://elbywan.github.io/bosket/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drag on same level

Gi972 opened this issue · comments

commented

Hello @elbywan ,

First your tool is very very awesome thanks for this simple and easy to use.

I need your help for the drag and drop.

I want drag element but only with the same level between the source Item and the destination Item.

I try Many solutions, but I don't arrive drag only the same element with the same level or except when a specific properties in model allowIt , specialy with async element.
Also it's possible to open automatically the children when I drag element over it?

You can see the model here: https://stackblitz.com/edit/react-zasmjr?file=model.js

all elements have a level.

Thanks for your help

commented

Thanks @jmoseman01,

I solve my issue by overriding the drag and drop method.

I close this