Results 1 to 4 of 4

Thread: enabling VerticalSwipe without Ext.Setup

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: enabling VerticalSwipe without Ext.Setup

    Hello all,

    I would like to use the built-in VerticalSwipe recognizer in my ST2 application, which is disabled by default. Its docs refer me to Ext.setup, which offers an example of enabling both swipe recognizers. However I am using the MVC architecture, so I have no Ext.setup -- only an Ext.application declaration. When I try to invoke Ext.setup in my own code before the Ext.application declaration, the framework complains during application instantiation that "Ext.setup has already been called before," which of course makes sense, because I just called it myself.

    How do I change the set of gesture recognizers without using Ext.setup, or alternatively, how to I cause Ext.setup to bootstrap my MVC application?

    Thanks in advance,
    Garrett

  2. Have you tried using the eventPublishers in Ext.application?

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Answers
    3898
    Vote Rating
    1287
      0  

    Default

    Have you tried using the eventPublishers in Ext.application?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default yep!

    That worked! Thanks very much.

    Side question: how would I have helped myself to this answer. Did I overlook some documentation?

    Best regards,
    Garrett

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Answers
    3898
    Vote Rating
    1287
      0  

    Default

    Docs always need more. I personally know that the configs for Ext.setup usually work in Ext.application.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

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
  •