1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    10
    Answers
    1
    Vote Rating
    0
    slrobertson1 is on a distinguished road

      0  

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

    Unanswered: [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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Currently no but it may be possible in a future release.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1