rniemeyer / knockout-sortable

A Knockout.js binding to connect observableArrays with jQuery UI sortable functionality
MIT License
547 stars 128 forks source link

$index not available #123

Open mr-simonski opened 9 years ago

mr-simonski commented 9 years ago

Thank you for this great library! This was exactly for what I was looking for.

Before I used your lib I populated a

with product-div-nodes via the foreach knockout binding. At the very end after all product-divs were inserted I needed to add a clearing div like that:

`

` With the knockout-sortable lib it seems that the `data-bind="sortable: { data: products }"` doesn't offer the $index var - am I right? Do you have a suggestion how I could restore this functionality?
SimplySentient commented 9 years ago

I also ran into this problem. It would be great if $index didn't break. Otherwise I'm really happy at how easy this plugin has been to use!

romainr commented 6 years ago

+1