extjs 动态控制textfield的readOnly属性

来源:互联网 发布:grant 没有权限 sql 编辑:程序博客网 时间:2024/04/30 09:11

1、假设 textField, 它的 id = 'textField'
则代码如下:Ext.getCmp("textField").getEl().dom.readOnly = true;

2、假设 textField, 通过 var textField = newExt.form.TextField()
则代码如下:textField.el.dom.readOnly = true; extjs textfield

 

textField设置成为了disabled:true以后此文本框的内容就无法通过form表单提交到后台去了,disable:true就不能submit,

0 1
原创粉丝点击