function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Renato Barucco 1Renato Barucco 1 

lightning-tree with drag and drop feature

I have a LWC component with a lightning-tree for role hierarchy. I need to implement a drag and drop function for the items to reorder them and save the new hierarchy.
This is the tree:
<lightning-tree items={items} onselect={handleSelectAssign}></lightning-tree>
How it looks:
User-added image
Is it possible to drag and drop the items?
Best regards, Renato
Best Answer chosen by Renato Barucco 1
VinayVinay (Salesforce Developers) 
Hi Renato,

As per my understanding,  Drag and drop functionality is not possible on above scenerio.

https://hackernoon.com/drag-drop-for-lightning-components-27230745a2eb

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Renato,

As per my understanding,  Drag and drop functionality is not possible on above scenerio.

https://hackernoon.com/drag-drop-for-lightning-components-27230745a2eb

Thanks,
This was selected as the best answer
Renato Barucco 1Renato Barucco 1

Thanks Vinay!

VinayVinay (Salesforce Developers) 
Please mark as Best Answer if above information was helpful so that it can help others in the future.

Thanks,