Results 1 to 3 of 3

Thread: Way to get current Route?

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    628
    Vote Rating
    40
      0  

    Default Way to get current Route?

    Looks like window.location.hash works but didn't know if there is a preferred Ext API call?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    There isn't a method or anything, that is the way I do it.
    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

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Location
    Kyiv, Montreal
    Posts
    124
    Vote Rating
    2
      0  

    Default

    This way works for me:
    PHP Code:
       getActiveRoute: function () {
            var 
    history app.getHistory(),
                
    actions history.getActions();

            return 
    actions[actions.length 1].config;
        } 

Posting Permissions

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