PDA

View Full Version : bbar in Extjs



gameboy87
18 May 2012, 1:31 AM
I have form Panel with a Combo Box, some labels, some display items, buttons and bbar(a button in it).


The combo box has data "Enable" and "Disable". If "Enable" is clicked the bbar's Button should be enabled. If "Disable" is selected I need to Disable the bbar's button.

Please help me in Doing this...I tried with vv.disable(); But, in vain.

The code for is,


panel = Ext.create('Ext.form.Panel',{
url:'some url',
method:'some method',
frame:true,
id:'some id',
items:[
{
//some items
},
{
//some items
}
],
bbar:[
{
xtype:'button',
text:'some text',
name:'vv',
id:'vv',
tooltip:'Hey ! do not hover over me !',
handler: function(){
//some function is called here;
}
}
]
});

gameboy87
18 May 2012, 2:20 AM
I tried with Ext.getCmp('vv').disable();

It worked ...Thanks.\:D/