11 Apr 2012 3:08 AM #1
Unanswered: panel show and hide
i hide and show panel by this way
LoginPanel = Ext.create('Seal.view.Login'); MainPanel = Ext.create('Seal.view.MainPanel'); MainPanel.hide(); Ext.Viewport.add(LoginPanel); Ext.Viewport.add(MainPanel);
but it seem wrong >>>
because when i try to build production the panel don't show or hide
is there any other way to show and hide the panels ??
11 Apr 2012 5:15 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Ext.Viewport by default uses card layout. If you add two items to Ext.Viewport, the current active index will be visible. So if you add two items, the first will be the visible one.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.