republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
700
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


lunina

@pppoe.mtu-net.ru

extjs: problem with

body in html file must be empty.
this code works correctly:

Ext.onReady(function(){
        
              var tabs = new Ext.TabPanel
              ({               
                activeTab: 0,
                items: [{
                        title: 'Tab 1',
                        html: ' if I remove this item from tabPanel while initialization, the content of other tabs becomes empty',
                        closable:true
                       }]  
               });
    
 
           var addition = new Ext.Panel
           ({
                id          : 'addition',
                title       : 'tab container',
                region      : 'east',
                collapsible : true,
                margins     : '3 3 3 0',
                cmargins    : '3 3 3 3',
                items       : tabs,
                split       : true,
                width       : 500         
            });
 
           var rpan = new Ext.Panel
           ({
                id          : 'content',
                title       : 'content',
                region      : 'center',
                collapsible : true,
                margins     : '3 3 3 0',
                cmargins    : '3 3 3 3',
                html        : 'empty' ,
                                              
                tbar:
                   [
                        {
                        iconCls:'add-feed',                         
                        text:'Add Tab',
                        handler: function() 
                                        {     
                                           tabs.add
                                           ({   
                                             title    : 'tab name',
                                             html     : 'some content',                                                    
                                             closable : true
                                           }).show();    
                                        },               
                        scope: this                
                        }
                   ]        
           });                                     
 
        var win = new Ext.Window({
            title    : 'Parent window',
            closable : true,
            width    : 700,
            height   : 350,
            x        : 300,
            y        : 100,           
            layout   : 'border',
            containerScroll: false,
            items    : [rpan,addition]
        });
 
        win.show();     
});
 

But, if I remove this item 'Tab 1' from tabs while initialization, the content of new tabs becomes empty. I mean this tabs works incorrectly:
  var tabs = new Ext.TabPanel
              ({               
                activeTab: 0
               });
 
How can I add normal tabs without first tab in initialization of TabPanel?


PToN

join:2001-10-04
Houston, TX

You should probably post on extjs forums... You will get a quicker response there.. But noone likes repeats so search the extjs forums with their google tool before posting..


Thursday, 31-May 16:56:41 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics