1. #1
    Ext Premium Member halcwb's Avatar
    Join Date
    Mar 2010
    Location
    Rotterdam
    Posts
    402
    Vote Rating
    97
    halcwb is just really nice halcwb is just really nice halcwb is just really nice halcwb is just really nice halcwb is just really nice

      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,704
    Vote Rating
    495
    LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future

      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',

Thread Participants: 1

Tags for this Thread