senchaYewser
6 Sep 2017, 11:05 AM
Hello, I'm new to ExtJs and DeftJS, but am using ExtJS 4 with DeftJS on existing code base.
I have a view which is a tab Panel and contains code similar to:
tabConfig { myAttribute : 'customName' },
items:[
{ xtype: something, itemId: theId }
]
and in the controller it is watching the item using:
control:{
theId:true
}
but what I want to do is to also watch the tabConfig from the controller in order to change the tabConfig attribute to something else.
But I can't watch the tabConfig in order to be able to change it.
For example, if I give my tabConfig an itemId it fails to load the panel, is it that tabConfig's cannot have itemIds ? What I want to have in the controller is something like:
control :{
theTabConfigId: functionInController
}
please help,
thankyou
I have a view which is a tab Panel and contains code similar to:
tabConfig { myAttribute : 'customName' },
items:[
{ xtype: something, itemId: theId }
]
and in the controller it is watching the item using:
control:{
theId:true
}
but what I want to do is to also watch the tabConfig from the controller in order to change the tabConfig attribute to something else.
But I can't watch the tabConfig in order to be able to change it.
For example, if I give my tabConfig an itemId it fails to load the panel, is it that tabConfig's cannot have itemIds ? What I want to have in the controller is something like:
control :{
theTabConfigId: functionInController
}
please help,
thankyou