PDA

View Full Version : ctrl addConfig() how?



zlevardy
20 Sep 2012, 4:16 AM
hi,

trying to call in RT, and add config to my controller.


MyApp.controller.Edit.addConfig( {'editOthersList': { selectionchange: this.onOthersEditSelect } } );


unfortunatelly not find addConfig param list, so added a new obj {}.

eagle eyes?

zlevardy
23 Sep 2012, 11:27 PM
hi,

in other words: how can I refer to a controller?

thx

zlevardy
24 Sep 2012, 12:15 AM
hi there,

with firefox debugger, there addConfig(), but it cannot be found in the documentation: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.app.Controller (it shows 4.1.2 in header), I have 4.1.1 installed. Online docs having addListener(), my has addConfig(), which is not covered by docs.

is there anybody can help me what is the parameter list of this addConfig() method?

Adding a simple listener to tab itseft, it is not working. That's why I am looking for this.

zlevardy
24 Sep 2012, 6:18 AM
by checking Class.js and Base.js the param list is addConfig( configObj, mergeListBool);

Can anyone tell me is this looks correct?

MyApp.controller.Edit.addConfig( { 'editOthersList': { selectionchange: this.onOthersEditSelect } }, true );
thx