Threaded View
-
17 Jan 2012 5:42 AM #1
Answered: How to capture label tap event on checkbox fields?
Answered: How to capture label tap event on checkbox fields?
In sencha touch v1 you could do this:
This doesn't work in Touch 2 - so there must be a new way of capturing the label tap event.PHP Code:listeners:
{
labelEl:{
tap:function () {
var obj = Ext.getCmp('recall-0-1');
if (obj.isChecked()) { obj.uncheck(); }
else { obj.check(); }
}
}
}
Any clues much appreciated?
regards
Tom
-
Best Answer Posted by mitchellsimoens
you will have to do it after the component's element has been created and then do
Code:cmp.label.on('tap', function() {}, cmp);


Reply With Quote