PDA

View Full Version : [Solved] Controller Action should be able to reference Refs



FPXdeveloper_4
9 Feb 2012, 2:26 PM
[SOLVED] A Controller Action should be able to reference a named Controller Reference according to the Sencha Touch2 documentation. This doesn't seem possible currently with the designer as it puts what is entered in double quotes (see below)



config: {
control: {
"loginButton": {
tap: 'doLogin'
}
},

refs: {
loginButton: 'button[action=login]'
}
}

FPXdeveloper_4
9 Feb 2012, 2:57 PM
Nevermind. It does work with the double quotes, my query was just off.

Phil.Strong
10 Feb 2012, 2:25 PM
updating your code example in your 2nd post would help others! ;)

FPXdeveloper_4
13 Feb 2012, 6:42 AM
The same code works, it is just that the query in it needs to actually match something.