_dan
30 Jan 2011, 9:22 AM
Hi,
I want to disable a button in an TabPanel. How would I do this? Setting the item to disabled does not work.
Please help.
Ext.setup({
onReady: function() {
var btn1 = new Ext.Tab({
title: 'Home',
iconCls: 'home',
html:'<h1>1. Panel</h1>',
});
var btn2 = new Ext.Tab({
title: 'Info',
iconCls: 'info',
html:'<h1>1. Panel</h1>',
disabled:true,
});
var panel = new Ext.TabPanel({
fullscreen: true,
dockedItems: [],
items: [btn1, btn2],
tabBar: {
dock:'bottom',
cardSwitchAnimation:'slide',
sortable: false,
scroll: {
direction: 'horizontal',
useIndicators: true
},
layout: {
pack:'center'
}
}
});
}
});
I want to disable a button in an TabPanel. How would I do this? Setting the item to disabled does not work.
Please help.
Ext.setup({
onReady: function() {
var btn1 = new Ext.Tab({
title: 'Home',
iconCls: 'home',
html:'<h1>1. Panel</h1>',
});
var btn2 = new Ext.Tab({
title: 'Info',
iconCls: 'info',
html:'<h1>1. Panel</h1>',
disabled:true,
});
var panel = new Ext.TabPanel({
fullscreen: true,
dockedItems: [],
items: [btn1, btn2],
tabBar: {
dock:'bottom',
cardSwitchAnimation:'slide',
sortable: false,
scroll: {
direction: 'horizontal',
useIndicators: true
},
layout: {
pack:'center'
}
}
});
}
});