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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Have you tried using the eventPublishers in Ext.application?
    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

  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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Docs always need more. I personally know that the configs for Ext.setup usually work in Ext.application.
    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

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
  •