PDA

View Full Version : uncloseable tab after create



noimehl
27 Dec 2010, 12:55 AM
Hi,

i want to add an tab to an tabpanel which is closeable.



var maintabs = Ext.getCmp('MainTabs');

var propview = new propview({
id: PropID,
propID: PropID,
iconCls: 'prop16',
closeable:true,
autoScroll: true
})

var tab = maintabs.add({
title: PropNo,
items: propview
iconCls: 'prop16',
closeable: true
});
maintabs.setActiveTab(tab);


But my new tab will NOT be closeable. Why? What is wrong?

Condor
27 Dec 2010, 1:22 AM
It's 'closable' and not 'closeable'.

rkaat
27 Dec 2010, 1:24 AM
var maintabs = Ext.getCmp('MainTabs');

var propview = new propview({
id: PropID,
propID: PropID,
iconCls: 'prop16',
closable : true,
autoScroll: true
})

var tab = maintabs.add({
title: PropNo,
items: propview
iconCls: 'prop16',
closable : true
});
maintabs.setActiveTab(tab);
It is closable, not closeable.

noimehl
27 Dec 2010, 2:08 AM
thanks, its works.