PDA

View Full Version : Checkbox Listener



eldiego34
6 Aug 2010, 5:07 AM
Hi all,
I'm starting to develop a mobile application and i want to know if the checkbox has the 'check' listener working. Because yesterday i tried to use it and it doesn't work.
Here is the code, i have to use change but doesn't work because first the check gains a focus, and then is a check event.


xtype: 'checkbox',
name: 'firstChecked',
listeners: {
change: function() {
me.onChange(this.name,this.getValue());
}
}

See you, the web is awesome.
Saludo.

eldiego34
18 Aug 2010, 12:42 PM
Here is the listener with check, it doesn't work. It works with change, but have some problems with the focus, on the checkbox. Maybe is a problem of the framework, i don't know, if anyone knows please tell me. I tested in iphone, safari, and android.


xtype: 'checkbox',
name : 'cool',
label: 'Cool',
listeners: {check: function(){console.log('Changed');}}
Saludo.

evant
18 Aug 2010, 6:10 PM
The check event will be in the next release, stay tuned!

mattlink
23 Nov 2013, 11:14 AM
well been a while, so I guess the release already, can someone tell me, how itīs work now, about this issue of course.
Anticipated Thanks.