Search code examples
extjstabsextjs4.2tabpanel

vertical tab panel in ExtJs 4.2


Is there a way a vertical tab panel can be created in ExtJs 4.2 using the existing tab panel. By setting the tab strip to 'left', the strip is docked to left of the panel but that's not what I wanted. Is it possible to have the tabs positioned one by one vertically?


Solution

  • I believe you can get the result you are looking for by setting tabPosition:'left' on the tab panel.

    I've created a sencha fiddle for demonstration:

    var panel = Ext.create('Ext.tab.Panel',{
                renderTo:Ext.getBody(),
                tabPosition:'left',
                height:400,
                width:1000,
    
                items:[{
                    title:'Item 1'
                },{
                    title:'Item 2'
                }]
            });