Results 1 to 3 of 3

Thread: which action gets triggered on 'back'?

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Munich, Germany
    Posts
    58
    Vote Rating
    1
      0  

    Default which action gets triggered on 'back'?

    Hi!

    I have a tabpanel with 2 items: news and events and both of them have detail views.
    When the user (in the detail view) hits the back button and sees the news/events list again... which action gets triggered?

    Code:
                "list[id=eventList]": {
                    show: 'showEventsList'
                },
    the show event only gets triggered when I tap the Events item on the tabPanel...

    Thanks!

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

    Default

    What back button?
    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
    Feb 2012
    Location
    Munich, Germany
    Posts
    58
    Vote Rating
    1
      0  

    Default

    When I push a new view to my navigationView , a back button gets added...
    I need to know which view the user sees when he taps the back button.

    I have news -> newsDetails and events -> eventsDetails

    Edit: Got a solution!

    Code:
            var activePanel = Ext.getCmp('MainTabPanel').getActiveItem();
            var activeItem = activePanel.getItemId();
            if(activeItem == 'newsList'){
                this.filterNewsStore();
                Ext.getCmp('showSettingsButton').show();
                Ext.getCmp('filterbutton').show();
            }
    
    
            if(activeItem == 'eventList'){
                this.filterEventsStore();
                Ext.getCmp('showSettingsButton').hide();
                Ext.getCmp('filterbutton').show();
            }

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
  •