如题
附上代码:var myform = new Ext.FormPanel({
frame: true,
border: false,
bodyStyle: 'padding:20px 10px 0;margin:2 2 2 2;',
labelAlign: 'right',
labelWidth: 80,
items: [txt_UserName, txt_RTime, txt_NeedDescription, txt_TruckDescription, txt_LineDescription, txt_ContName, txt_ContPhone,
txt_AddTime, txt_EditTime, txt_BeginTime, txt_EndTime, txt_Res],
buttons: [{ id: 'btnOk', text: '确定', handler: dofinding}, { id: 'btnCancel', text: '取消', handler: doClose}]
});
附上代码:var myform = new Ext.FormPanel({
frame: true,
border: false,
bodyStyle: 'padding:20px 10px 0;margin:2 2 2 2;',
labelAlign: 'right',
labelWidth: 80,
items: [txt_UserName, txt_RTime, txt_NeedDescription, txt_TruckDescription, txt_LineDescription, txt_ContName, txt_ContPhone,
txt_AddTime, txt_EditTime, txt_BeginTime, txt_EndTime, txt_Res],
buttons: [{ id: 'btnOk', text: '确定', handler: dofinding}, { id: 'btnCancel', text: '取消', handler: doClose}]
});
disabled:true
吧基本上都提供了这个option
frame: true,
border: false,
bodyStyle: 'padding:20px 10px 0;margin:2 2 2 2;',
labelAlign: 'right',
labelWidth: 80,
disabled: true, items: [txt_UserName, txt_RTime, txt_NeedDescription, txt_TruckDescription, txt_LineDescription, txt_ContName, txt_ContPhone,
txt_AddTime, txt_EditTime, txt_BeginTime, txt_EndTime, txt_Res],
buttons: [{ id: 'btnOk', text: '确定', handler: dofinding}, { id: 'btnCancel', text: '取消', handler: doClose}]
});
我把她放那 结果buttons 也不可用了。想把这些文本框不可编辑:
你这里只给了变量名,是new出来的么?
构造的时候加上就好了
ext 版本不同属性可能也不同,最好查一下对应的api谁来帮 我解决图片问题啊