-
30 May 2012 3:36 PM #1
boxLabel listener
boxLabel listener
Trying to implement http://dev.sencha.com/deploy/ext-4.0...istration.html.
using action controller.
How can I setup an action to capture the click on the boxLabel ?
-
30 May 2012 6:09 PM #2
Clicking on the boxlabel is equivalent to changing it. Target the checkboxfield with change event.
Not sure if that is what you are looking for.Code:this.control({ "checkboxfield": { change: this.onCheckboxfieldChange } });Bharat Nagwani
Sencha Designer Development Team
-
30 May 2012 6:31 PM #3
I been using SA for half a year now and when I encounter scenarios not supported by the tool I look for an alternative way of implementing the desired functionallity.
In your case, may be not to elegant but you could add a button for "Terms of use", create a custom component which behaves like hiperlink or create a new component based on checkbox and iimplement the desired behaviour in override class.
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
30 May 2012 10:51 PM #4
Noop..... This is a listener to the checkbox field, what is is requested is a listener on the boxLabel part of the field, to capture the click.
-
30 May 2012 10:53 PM #5
Sure one can find alternative ways...however i'm trying to master the tool....
-
31 May 2012 7:48 AM #6
UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
31 May 2012 2:37 PM #7
Cool! This is working !!!
The event binding workflow is misleading..... I would expect it to discover all the elements contained in the control, let you select the one you need, then discover all supported events by that element and let you select the event you want....currently it assumes you bind the checkbox and will not present you a click event to select from the event binding combo box....not really user friendly...
Thanks Much!!


Reply With Quote