1.直接隐藏

在bbar的按钮中直接加属性:hidden : true 属性,可隐藏;disabled : true 属性,可禁用

在columns列中直接加属性:hidden : true 属性,可隐藏;

2.动态隐藏或禁用

bbar的按钮:

//pButton为按钮ID属性值
Ext.getCmp('pButton').disable();//禁用, 显示为灰色 //Ext.getCmp('pButton').setVisible (false);//隐藏,二选一 Ext.getCmp('pButton').hide();//隐藏,二选一
Ext.getCmp('btn').enable();开启
Ext.getCmp('btn').setVisible (true);显示。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-06-25
  • 2022-01-03
相关资源
相似解决方案