Closed ax1 closed 2 years ago
it would be great for arrays to add a data-index, data-counter or allow a position value.
the current way is by checking data-* properties for the real counter but it must be substrated manually
current
<li onclick="check(this)">{{0.value}}</li> ir.controller.check = function(el) { el.innerText.substring...
option1
<li data-index="0" onclick="check(this)">{{0.value}}</li> ir.controller.check = function(el) { el.dataset.index..
option2 ....thinking
Implemented as autogenerated data-index="{{0}}" data-index="{{1}}" , etc. The index can be extracted later by reading that node or by using the r.model (name).indexOf() method
it would be great for arrays to add a data-index, data-counter or allow a position value.
the current way is by checking data-* properties for the real counter but it must be substrated manually
current
option1
option2 ....thinking