PDA

View Full Version : How Remove minimize icon from title bar ( when xtype= portal )



sachin sachdeva
14 Oct 2010, 4:26 AM
sir i am using portal in my tabpanel now as per user requirements we do not require minimize button on each portal so can u plz tell me how to remove this tool froma portal.i am sending code here


mainTabPanel = new Ext.TabPanel(
{
region : 'center',
id : 'mainTabPanel',
enableTabScroll : true,
deferredRender : false,
animCollapse : true,
activeTab : 0,
listeners : {
tabchange : function() {
document.getElementById('search').blur();
}
},
items : [
{
el : 'document-grid',
layout : 'fit',
autoHeight : true,
title : 'Assets',
id : 'assettab',
name : 'assettab',
autoScroll : true
},
{
xtype : 'portal', //...........................................//
title : 'Workspace',
id : 'center-panel',
draggable : false,
scope:this,
autoScroll : true,
closable: false,
margins : '30 2 2 0',
items : [
{
columnWidth : .2,
id : 'center-panel-col0',
hidden : true
},
{
columnWidth : .5,
id : 'center-panel-col1',
style : 'padding:100px 0 100px 10px',

items : [
{
title : 'Asset Search',
tools : tools1,
html : '<iframe scrolling="no" style="width:100%;height:422px;overflow:hidden;" name="asssetSearchFrame" frameborder = "0" src="' + 'search.jsp"></iframe>'
},

{
title : 'Asset Searchrererereeer',
tools : tools1,
html : '<iframe scrolling="no" style="width:100%;height:422px;overflow:hidden;" name="asssetSearchFrame" frameborder = "0" src="' + 'search.jsp"></iframe>'
},


{
contentEl : 'MyFilesTabs',
title : 'My Working Copies',
// height : 443,
tools : tools1,
autoScroll : false
}

/*
* Commented My files and My
* working copies portlets {
* title: 'My Files', layout:
* 'fit', tools: tools, items:
* new MyUCMGrid([0, 2, 3],
* UCM_URL +
* 'service/dal/myFiles.json') }, {
* title: 'My Working Copies',
* tools: tools, layout: 'fit',
* items: new MyUCMGrid([0, 1],
* UCM_URL +
* 'service/dal/myWorkingCopies.json') }
*/
]
},
{
columnWidth : .48,
id : 'center-panel-col2',
style : 'padding:10px 0 10px 10px',
items : [
{
title : 'Asset Check-in',
tools : tools1,
html : '<iframe scrolling="no" style="width:100%;height:422px;overflow:hidden;" frameborder = "0" src="' + 'checkin.jsp"></iframe>'
},
{
contentEl : 'parentTab1',
title : 'My Task',
// height : 482,
tools : tools1,
autoScroll : false
} ]
},
{

columnWidth : 0.96,
id : 'center-panel-col3',
style : 'padding:10px 0 10px 10px',
items : [ {
title : 'Batch Upload',
tools : tools1,
html : '<iframe scrolling="no" style="width:99.6%;height:268px;overflow:hidden;" frameborder = "0" src="upload.jsp"></iframe>'
} ]
} ]

}
]

});

Animal
14 Oct 2010, 4:44 AM
collapsible: false ?