-
15 Mar 2012 1:01 AM #1
How use controllers in Sencha Designer
How use controllers in Sencha Designer
Hello
I'm looking fordocumentation and /ora tutorial onmanagementcontrollersinSenchaDesigner.Can youhelp me?
-
15 Mar 2012 6:53 AM #2
We are working on Designer specific tutorials regarding MVC and especially controllers.
For now, I'd recommend reviewing the Ext and Touch documentation regarding these topics:
Ext
http://docs.sencha.com/ext-js/4-0/#!/guide/mvc_pt1
http://docs.sencha.com/ext-js/4-0/#!/guide/mvc_pt2
http://docs.sencha.com/ext-js/4-0/#!/guide/mvc_pt3
Touch
http://docs.sencha.com/touch/2-0/#!/guide/controllersAaron Conran
@aconran
Sencha Architect Development Team
-
15 Mar 2012 6:57 AM #3
Thanks for your help

I'll read this documentation.
-
22 Mar 2012 8:42 AM #4
nice to hear you work on that

but i only come close to the functionalities taken from "guide to controllers".
in the guide is said to add a ref in the config.
so i done and and added a basicfunction :
config: {
views: [
'MyPanel'
],
refs: {
btn_1: '#btn_1'
}
}, doWhat: function() {
alert('doWhat');
}
next i want to add a control to the config (like you mentioned thats the sister of refs).
how do i do this to reach:
config: {
views: [
'MyPanel'
],
refs: {
btn_1: '#btn_1'
},
control:{
btn_1:{ tap:'doWhat'}}, }, doWhat: function() {
alert('doWhat');
}
perhaps im on a wrong way?!
or is there a other way to trigger the function in controller?
regards
-
22 Mar 2012 10:00 AM #5
Add a controller action
Aaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote