johnny / jquery-sortable

A flexible, opinionated sorting plugin for jQuery
http://johnny.github.io/jquery-sortable/
Other
1.52k stars 441 forks source link

Provide current position field in isValidTarget #222

Open vicmosin opened 8 years ago

vicmosin commented 8 years ago

Currently each one who wants to check for valid target programmatically needs to get somehow the index of dropping element (for example, I want to restrict to drop at last position).. It would be nice to have such value