angular-ui/ui-sortable

Getting the depth of the Dynamic Template.

jkshan opened this issue · 1 comments

Hi,

Is there any way to know the depth of the Item in Dynamic Template mode.

Thanks.

There isn't anything like this as part of the implementation. I would suggest you to use jQuery's parents() to count the nested [ui-sortable] elements or keep the depth of each item as part of it's model.