1. #1
    Sencha User
    Join Date
    Jul 2013
    Posts
    7
    Vote Rating
    0
    johija is on a distinguished road

      0  

    Default Unanswered: conditional tab loading

    Unanswered: conditional tab loading


    Currently in our application we load tabs, in launch function.
    Code:
    var viewPort = Ext.create('Ext.container.Viewport', {
                layout  : 'fit',
                items: [
                	Ext.create('Ext.tab.Panel', {           			
                        	items: [
                        	     Ext.create('Tab 1', {title: ' Tab 1'}), 
                        	     Ext.create('Tab 2', {title: ' Tab 2'}),
                            ],
                            
                		}),
                ]
            });
    In the Panel, can I create Tab 2 on conditional basis. Like a variable set to true, then only I need to create 'Tab 2'?

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    95
    Answers
    9
    Vote Rating
    13
    Zinnia will become famous soon enough

      0  

    Default


    Yes, you can add new tab conditionally , see the below example
    http://docs.sencha.com/extjs/4.2.1/#.../tabs-adv.html

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar