Reputation: 587
I have four button inside the buttongroup when i hide button all button hide with buttongroup. Is this bug ExtJs3 or something i did worng?
This what i used for hide button
var theSameButton = Ext.getCmp('my_button_id');
theSameButton.hide();
Upvotes: 0
Views: 253
Reputation: 366
I think "my_button_id" is your button group id. can you post your code? if u want only one button hide try below code.
Ext.onReady(function(){
var Window = new Ext.Window(
{
width : 340,
height : 150,
iconCls : 'upload',
defaults : {
bodyStyle : 'padding:0px'
},
items : [{
xtype: 'buttongroup',
id:'buttonGrp',
items: [{
text: 'Paste',id:'button1',handler : function(){ Ext.getCmp('button2').hide();}
},{
text: 'Copy',id:'button2'
},{
text: 'Format',id:'button3'
}]
} ]
});
Window.show();
});
Upvotes: 1