MVC - visual inheritance and components dependencies
MVC - visual inheritance and components dependencies
Hi All,
i trying to create base controller - for visual inheritance with events.
What was done:
Ext.define('Default.Window', extend:'Ext.Window'.....
with toolbar and tabpanel for two items (by xtype)
Ext.define('Default.Form'........
Ext.define('Default.Grid'........
What stops me:
how to define in base controller : (for example) button for change tabpanel active item grid<>form...for inheritance?
Ext.define('My.Form' extends : 'Default.Form'......
Ext.define('My.Grid' extends : 'Default.Grid'......
Ext.define('My.Window', extends : 'Default.Window' // with tollbar and tabpanel:items{grid,form}
How in
Ext.define('Default.Controller'......
create events (components dependencies) and make them available (work) in
Ext.define('My.Controller', extends : 'Default.Controller'
?
So you want a base (abstract) controller and have other controllers extend it correct? If you are using the init method to execute this.control in the base controller and the subclass controllers then the subclass controllers need to execute this.callParent(arguments);
Ok, this is the simple "konwn" part, but i have a problem with controls and events for them - created in base controller dependienes should work in subclasses.
how definie that control-dependiences in base controller?