Early Feedback on Item Selections

I am using various components (mainly grids, lists and group lists) to navigate to other views. Is there a way I can temporarily set the style on a grid row or list item to show that a touch has been detected?


onItemClick event takes itemId and event object as arguments. Using event object may get html element of grid row or list item and apply addition className for it. Here is the code for this solution:

[code]function highlightItem(id,e){
var trg = e.target;
trg = trg.parentNode;
trg.className += " touched";
trg.className = trg.className.replace(" touched","");


“touched” css can be like so:

.touched{ background: #eeeeee; }