Extjs3.2 radiogroup 隐藏指定item
原创 iwantyou 发表于:2019-12-05 10:28:59
  阅读 :332   收藏   编辑

给items中的item指定ID

隐藏

Ext.getCmp('ID').setVisible(true);

显示

Ext.getCmp('ID').setVisible(false);

实例

var cust_type = ({
	xtype: 'radiogroup',
	fieldLabel: '客户类型',
	id:'cust_type',
	hidden : true,
	items: [
	        {boxLabel: '个人', name: 'cust_type',id: 'cust_type_0', inputValue: 0,checked: true},
	        {boxLabel: '单位', name: 'cust_type',id: 'cust_type_1', inputValue: 1}
	       ]    
});

Ext.getCmp('cust_type_1').setVisible(true);