动态修改表单字段的配置

阅读更多
方法一:
Ext.apply(Ext.getCmp('anyId'), {your config object});


方法二:
myField.allowBlank = true;
myField.validateValue(myField.getValue()); //force update


参考:
http://stackoverflow.com/questions/6098596/how-to-adding-fields-config-on-the-fly
http://www.sencha.com/learn/form-faq#Set_allowBlank_dynamically

你可能感兴趣的:(动态修改表单字段的配置)