Results 1 to 2 of 2

Thread: MVC Master/Detail & delegates

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Vote Rating

    Default MVC Master/Detail & delegates

    I'm converting an iOS application to Sencha and was wondering if there are any examples of a fairly typical pattern from iOS in Sencha. The pattern is delegation.

    The master view passes a piece of information and sets itself as the delegate for events on the detail view. Typical example is a row on a list is clicked and the detail view you edit the info. When done editing, the detail view calls a Done method on the master and "passes" the information back async.

    Is there an example of how to do this in Sencha? I'm using the Architect, so focussing on using MVC like code as far as possible. Any help would be great.


  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    The view shouldn't set itself to listen for events, the controller should do this.
    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:

Posting Permissions

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