Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ListView item event does not work

$
0
0

Hi, My template as below;

{
        type : 'Ti.UI.Label',
        bindId : '_Share',
        events : {
                click : function(e) {
                    e.source.setBackgroundColor("red");
                }
        },
        properties : {
        text : "\uea82",
        font : {
            fontFamily : Alloy.Globals.IconFont,
            fontSize : 11
        },
        color : "black"
        width : Ti.UI.SIZE,
        height : Ti.UI.SIZE,
        bottom : 20,
        textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER
    }
 
}
When I click label, event does not fire. is there any suggestion?

Than you in advance.


Viewing all articles
Browse latest Browse all 8068

Trending Articles