ilikenwf/nestedSortable

Depth and Index

Opened this issue · 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.