Results 1 to 3 of 3

Thread: MVC - visual inheritance and components dependencies

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default 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'
    ?

    is it possible to perform?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    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);
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Posts
    21
    Vote Rating
    0
      0  

    Default

    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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •