Skip to content Skip to sidebar Skip to footer

Hiding A Button On Pushed View And Showing It When Back To List View

When I load my list view it has several blog posts and a refresh button on the top left. If I tap on a list item a view is pushed with the contents of that specific post. When this

Solution 1:

I'm not sure whether this is the best approach or not but if I were you I will use the back event of navigation view which fired when you tap the back button

So beside showPost function, you should add another control for back event like this:

'homepanel list': {
    itemtap:'showPost'
},stream: {
    back:'backButtonHandler'
}

Then you can run the backButtonHandler function to show your refresh button again:

backButtonHandler: function(button){
     Ext.getCmp('refreshButtonId').show();
}

Hope it helps :)

Post a Comment for "Hiding A Button On Pushed View And Showing It When Back To List View"