HOW TO ADD CROSS BUTTON IN EVERY ROW OF LISTVIEW IN SENCHA TOUCH?

ben reitman

Total Post:96

Points:676
Posted by  ben reitman
 1468  View(s)
Ratings:
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. 
  1. Arun Singh

    Post:68

    Points:476
    Re: How to add cross button in every row of listView in Sencha Touch?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!