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
    631
    Vote Rating
    41
      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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,070
    Vote Rating
    1394
      0  

    Default

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

  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
  •