-
16 Aug 2011 3:14 PM #1
Answered: portal in tabpanel (urgent)
Answered: portal in tabpanel (urgent)
hello,
Any examples for portal in tabpanel without classes.js
many thanksVador
-
Best Answer Posted by mihaip007
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',
border: 0,
items: [{
items: [{
title: 'Grid Portlet',
items: Ext.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',
items: Ext.create('Ext.app.ChartPortlet')
}]
}]
}
];
me.down('#tabDashboard').add({
id: 'app-viewport',
xtype: 'panel',
border: 0,
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
-
19 Oct 2011 2:13 PM #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',
border: 0,
items: [{
items: [{
title: 'Grid Portlet',
items: Ext.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',
items: Ext.create('Ext.app.ChartPortlet')
}]
}]
}
];
me.down('#tabDashboard').add({
id: 'app-viewport',
xtype: 'panel',
border: 0,
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
-
22 Oct 2011 7:46 AM #3
work fine
work fine
work fine
many thanks my friend
+1 for youVador


Reply With Quote