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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Currently no but it may be possible in a future release.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •