rikulo.org has great example for list-view at
http://rikulo.org/resource/js/examples/index-list.html
In this example, how can I detect the selected items in the list?
For example, how do I know 'Row 5' is selected if I click or touch on 'Row 5' ?
rikulo.org has great example for list-view at
http://rikulo.org/resource/js/examples/index-list.html
In this example, how can I detect the selected items in the list?
For example, how do I know 'Row 5' is selected if I click or touch on 'Row 5' ?
You can listen to onClick events for each list item by
item.on.click.add((ViewEvent event) { // do whatever you want, handle selection, add/remove CSS class, etc });
Or add a checkbox within the list item, and listen to its onCheck event.
Note that Rikulo is under rapid development now and will add more construction. There will be a model driven list view that handles selection.