PDA

View Full Version : menu and switching between views



sveatlo
7 Nov 2012, 8:54 AM
Hi,
I'm trying to create an application. I want to have menu on the left side and by clicking on the items I want to switch between the views. Can you help me please?
Thanks for reply

Tim Toady
7 Nov 2012, 9:28 AM
There are a number of ways you can attack it. Your navigation area on the left can be a dataview, tree, grid, or container with styled pushbuttons. Your content area could be a container with a card layout. You would then listen to events in the navigation area, such as itemclick with the tree panel, and get your cardLayout and call setActiveItem on the layout.

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.layout.container.Card