我有文本框:
{
xtype: 'textfield',
fieldLabel: 'LBL_EMAIL',
anchor: '100%',
listeners: {
'render': function(p) {
// check certain conditions
this.hide()
}
},
},
“hide()”仅隐藏文本框(不带标签),而我要隐藏整个行(文本框和标签)。
有任何想法吗?
最佳答案
我找到了解决方案,我必须使用以下方法配置FormLayout:
trackLabels: true
关于extjs - 如何用标签隐藏文本框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3584401/