nestedSortable icon indicating copy to clipboard operation
nestedSortable copied to clipboard

Depth and Index

Open oscar0812 opened this issue 6 years ago • 0 comments

How do I get the depth and index of element? jQuery has a method

// ...
update: function(item, ui) {
      item = $(ui.item);
     // can get index with item.index();
}

is there a way to do that with this plugin? I would like to get the depth, what the parent is, and what the index inside that parent is (for example, the item was dropped in the parent as the second element)

EDIT: This plugin seems to lack maintenance, so it's hard to find documentation. Sorry if this question is meh.

oscar0812 avatar Mar 27 '19 23:03 oscar0812