Home > DeveloperSection > Forums > How to add cross button in every row of listView in Sencha Touch?
ben reitman
ben reitman

Total Post:96

Points:676
Posted on    June-14-2013 6:59 AM

 Sencha Touch Sencha Touch 
Ratings:


 1 Reply(s)
 1112  View(s)
Rate this:
Hi Expert,

I want to add cross button in every row of listView in Sencha Touch. How to do this?

Please help!
Thanks in advance. 


Arun Singh

Total Post:68

Points:476
Posted on    August-05-2013 1:50 AM

Hello Ben Reitman,
There is no such type of functionality to add Button Component in Sencha ListView but Sencha provides DataView control to add many component within it. So, either you use DataView control or you can add HTML Image in ListView Tpl Section like this:

itemTpl: [                   ' {Image_Name}',
                                    '         <img src=\'/image_path\' alt=\'close\' id=\'image_id\' class=\image_class\' />',
                                    ''

                                ]
I hope it might be resolve your problem.

Don't want to miss updates? Please click the below button!

Follow MindStick