Results 1 to 2 of 2

Thread: [B1] Is it possible to use event handler options with Controller.control?

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    10
    Answers
    1
    Vote Rating
    0
      0  

    Default [B1] Is it possible to use event handler options with Controller.control?

    I would like to use event handler options like 'delay', 'scope', 'single', etc. when creating my Controller.control config mappings. The following doesn't work, but hopefully someone can tell me the correct syntax to make something like this work:

    Code:
    Ext.define('MyApp.controller.SomeController', {
      extend: 'Ext.app.Controller',
    
      config: {
        refs: {
          someButton: 'myPanel button'
        },
    
        control: {
          someButton: {
            tap: { fn: this.onSomeButtonTap, delay: 200 }
          }
        },
    
        onSomeButtonTap: function(button) {
          // do something after a delay
        }
      }
    });

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    Currently no but it may be possible in a future release.
    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

Posting Permissions

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