I have a data table that is links to functions. After the user clicks the link and runs the function i am trying to change the right image to a checkmark to show its done. Its working .. sometimes. Other times it leaves it as the original image. Any ideas on how to fix this?
my code for the on click command is
row.addEventListener('click',function(){ faceBarcode.text =''; twiterBarcode.text = ''; yelpBarcode.text=''; this.rightImage ='images/check.png' alert('scan it'); });everything runs every time except for the right image. That only runs sometimes.
3 Answers
Accepted Answer
e.rowData.rightImage instead of e.source?
why is it this.rightImage and not e.source.rightImage like in:
row.addEventListener('click',function(e){ faceBarcode.text =''; twiterBarcode.text = ''; yelpBarcode.text=''; e.source.rightImage ='images/check.png' alert('scan it'); });
if its a tableview row, you can use hasCheck property, and dont need an image. maybe its better :)
Your Answer
Think you can help? Login to answer this question!