1. #1
    Sencha Premium Member ajaxvador's Avatar
    Join Date
    Nov 2007
    Location
    PARIS, FRANCE
    Posts
    206
    Vote Rating
    0
    ajaxvador is on a distinguished road

      0  

    Default Answered: portal in tabpanel (urgent)

    Answered: portal in tabpanel (urgent)


    hello,

    Any examples for portal in tabpanel without classes.js

    many thanks
    Vador

  2. My word! No one ever answered this??? Sad...
    Anyhow, here is what i did..!

    I simply included the files INSIDE the classes folder (without the classes.js)
    Then I added a normal tab panel and I simply added the items as follows. I am no fundi, so i am pretty sure there are easier ways, but here it goes:


    PHP Code:
    var portalContent = [
                {
                    
    id'app-portal',
                    
    xtype'portalpanel',
                    
    border0,
                    
    items: [{
                        
    items: [{
                            
    title'Grid Portlet',
                            
    itemsExt.create('Ext.app.GridPortlet')
                        },{
                            
    title'Portlet 2',
                            
    html'<div class="portlet-content">fgfgfegt</div>'
                        
    }]
                    },{
                        
    items: [{
                            
    title'Portlet 3',
                            
    html'<div class="portlet-content">fgfgfegt</div>'
                        
    }]
                    },{
                        
    items: [{
                            
    title'Stock Portlet',
                            
    itemsExt.create('Ext.app.ChartPortlet')
                        }]
                    }]
                }
            ];
            
            
            
    me.down('#tabDashboard').add({
                
    id'app-viewport',
                
    xtype'panel',
                
    border0,
                
    layout'fit',
                
    items: [
                        
    portalContent
                    
    ]
                
            }); 

    Hope this helps...! Also if anyone out there has easier ways or rather better ways, please contribute to this..!

    All the best...
    Mihai

  3. #2
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    190
    Answers
    1
    Vote Rating
    0
    mihaip007 is on a distinguished road

      0  

    Default


    My word! No one ever answered this??? Sad...
    Anyhow, here is what i did..!

    I simply included the files INSIDE the classes folder (without the classes.js)
    Then I added a normal tab panel and I simply added the items as follows. I am no fundi, so i am pretty sure there are easier ways, but here it goes:


    PHP Code:
    var portalContent = [
                {
                    
    id'app-portal',
                    
    xtype'portalpanel',
                    
    border0,
                    
    items: [{
                        
    items: [{
                            
    title'Grid Portlet',
                            
    itemsExt.create('Ext.app.GridPortlet')
                        },{
                            
    title'Portlet 2',
                            
    html'<div class="portlet-content">fgfgfegt</div>'
                        
    }]
                    },{
                        
    items: [{
                            
    title'Portlet 3',
                            
    html'<div class="portlet-content">fgfgfegt</div>'
                        
    }]
                    },{
                        
    items: [{
                            
    title'Stock Portlet',
                            
    itemsExt.create('Ext.app.ChartPortlet')
                        }]
                    }]
                }
            ];
            
            
            
    me.down('#tabDashboard').add({
                
    id'app-viewport',
                
    xtype'panel',
                
    border0,
                
    layout'fit',
                
    items: [
                        
    portalContent
                    
    ]
                
            }); 

    Hope this helps...! Also if anyone out there has easier ways or rather better ways, please contribute to this..!

    All the best...
    Mihai

  4. #3
    Sencha Premium Member ajaxvador's Avatar
    Join Date
    Nov 2007
    Location
    PARIS, FRANCE
    Posts
    206
    Vote Rating
    0
    ajaxvador is on a distinguished road

      0  

    Default work fine

    work fine


    work fine
    many thanks my friend
    +1 for you
    Vador

Thread Participants: 1