Results 1 to 2 of 2

Thread: Declarative wiring controllers events and handlers

  1. #1
    Ext Premium Member halcwb's Avatar
    Join Date
    Mar 2010
    Location
    Rotterdam
    Posts
    404
    Vote Rating
    99
      1  

    Default Declarative wiring controllers events and handlers

    The controller.listen method offers a nice way to declare the wiring between controllers and views, stores and other controllers via events. The setup below shows how in one declarative json, in theory, you can define the whole wiring for an application. The advantage could be that you'll have a much better overview of what controller listens to what event and which class will fire that event.


  2. #2
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,887
    Vote Rating
    541
      1  

    Default

    I noticed that the InitController class is extending Ext.Base. I don't think this is required, but probably is not causing any issues.

    Code:
    Ext.define('InitController', {
        extend: 'Ext.Base',

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
  •