Hi,
This topic has been brought up before but no one has provided an answer.
The Task
I'm creating a sortable list
Situation:
I'm using a nested template and rpn's awesome jqueryui sortable binding.
<ol data-bind="template :{name : 'show_unit', foreach: unit().units , sortableList: unit().units}">
Problem
I want to style the position number of each element. It's been nearly impossible to get the look I want trying to format the li tag.
Goal:
I want to be able to do this:
<span data-bind="text: $index"></span>
Any ideas how?
I should note that using the {{each ... }} won't work as I won't be able to use the jqueryui binding that rpn made. Further, if I use {{each ... }} I think I'll have to do unnecessary refreshes. when I update the list.
Thanks in advance!
Scott