Ticket #5560 (closed defect: fixed)
Tree: support drag and drop of nodes within tree
| Reported by: | bill | Owned by: | bill |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
Currently Tree (dijit._tree.dndSource::onDndDrop()) supports dragging of elements from a list into the tree, at which point it calls tree.store.newItem(). However, it doesn't support dragging nodes from within the tree (which would require modifying the children attribute on the old parent and the new parent):
- if node has an old parent, remove item from that parent's list of children items
- if node has a new parent, add item to that parent's list of children items
Change History
Note: See
TracTickets for help on using
tickets.