# Perspective Tree with drag and drop

**URL:** <https://forum.inductiveautomation.com/t/perspective-tree-with-drag-and-drop/72519>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 17, 2023, 11:01am UTC](https://forum.inductiveautomation.com/t/perspective-tree-with-drag-and-drop/72519 "2023-04-17T11:01:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias\_Wuest](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Matthias\_Wuest](https://forum.inductiveautomation.com/u/Matthias_Wuest)\
**Post date:** [April 17, 2023, 11:01am UTC](https://forum.inductiveautomation.com/t/perspective-tree-with-drag-and-drop/72519/1 "2023-04-17T11:01:05Z")

</div>

Hello there

I want to share a simple view with a tree component where nodes can be rearranged via drag and drop . JavaScript injection and the HTML attribute 'data-item-path' on tree nodes make it possible.

Here you go: [DnD\_Tree.zip](https://forum.inductiveautomation.com/uploads/short-url/wOfOIgxvk7na9YFPdEVKloEzdqf.zip) (9.5 KB)

Thank you @victordcq for the inspiration here: [Dragging rows in Perspective Table - #8 by victordcq](https://forum.inductiveautomation.com/t/dragging-rows-in-perspective-table/68922/8)

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [February 7, 2024, 1:43pm UTC](https://forum.inductiveautomation.com/t/perspective-tree-with-drag-and-drop/72519/2 "2024-02-07T13:43:20Z")

</div>

Hi,

I am trying to drag and drop tags from tree view to power chart. Can you please guide me on this?
