PDA

View Full Version : Fixed - Always Show Tabs in DominoUI?



mth96a
28 Aug 2007, 1:29 PM
i Have added the property to the DominoUI.js like so



// crate view panel
this.viewPanel = this.layout.add('center', new Ext.ContentPanel('extnd-view', {
autoCreate : true,
title : 'View',
closable : false,
fitToFrame : true,
alwaysShowTabs : true
}));


But this does not work, is this the right file to update? Does the panel get created somewhere else?

Zakaroonikov
28 Aug 2007, 1:50 PM
i Have added the property to the DominoUI.js like so



// crate view panel
this.viewPanel = this.layout.add('center', new Ext.ContentPanel('extnd-view', {
autoCreate : true,
title : 'View',
closable : false,
fitToFrame : true,
alwaysShowTabs : true
}));


But this does not work, is this the right file to update? Does the panel get created somewhere else?

Add that parameter to the definition of this.center instead as you want the tabs to be for each content panel in the center region.

mth96a
28 Aug 2007, 1:59 PM
already tried that no go

RWaters
28 Aug 2007, 4:05 PM
I've not tested this, but I don't believe you need to modify DominoUI, you can pass in a new definition for any region. Also the post above was correct in saying that you need to put it on the center LayoutRegion definition.



this.ui = new Ext.nd.DominoUI({
center: {
titlebar : false,
tabPosition : 'top',
closeOnTab : true,
initialSize : 400,
autoScroll : true,
alwaysShowTabs: true
}
})

mth96a
29 Aug 2007, 4:46 AM
For some reason editing the DominoUI did not work but your solution did, thanks for your help.