我有四个按钮在按钮组内,当我隐藏按钮全部按钮隐藏与按钮组。这是bug ExtJs3还是我做错了什么?
这就是我用来隐藏按钮的地方
var theSameButton = Ext.getCmp('my_button_id');
theSameButton.hide();发布于 2013-07-23 18:57:53
我认为"my_button_id“是你的按钮组id。你能发布你的代码吗?如果你只想要一个按钮,试着隐藏下面的代码。
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();
});https://stackoverflow.com/questions/17808094
复制相似问题