Hacker News new | past | comments | ask | show | jobs | submit login

I still wish you exposed a DOM fragment as an option instead of HTML strings.




I'd like that too. Would like to be able to sort on something stuck in a data attribute. https://github.com/javve/list/issues/35

I might take a crack at a patch if no one else does.


With the new plugins-functionality you could create your own special sorter that uses data attributes too. Then you would call it with listObj.yourSortersName(something).

And you can still use the regular sort function which since this version is a included in the helper object :)


Actually I realized I can already do this even without plugin functionality. The Item object passed to the sorter has access to the element http://screencast.com/t/Z5uVYNtH8


Ahh, smart! And good move with the screencast :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: