Goal: in relation to kind of event incrementing or decrementing of a value.
After click I increment a cell.
tv.addEventListener('click', function(e) { var total = 0; e.row.count++; e.row.countlabel.setText((e.row.count > 0) ? '' + e.row.count : ''); var prize = e.row.prizelabel.text; e.row.prize = e.row.count * parseFloat(prize); for (var i = 0; i < menue.length; i++) { total += rows[i].prize; } totalprize.text = total.toFixed(2) + ' EUR '; });In tableview s list of products with prizes.
Now I want to decrement the count after other event.
- longpress only gives me the standard properties of source row, no index, no special custom properties
- swipe will mot fired.
Any ideas?
Rainer
Your Answer
Think you can help? Login to answer this question!