xtype: 'form',
bodyStyle: {
background: 'transparent',
border: '0px',
height: '15px'
},
items: [{ //form 下包一个 'filefield'
xtype: 'filefield',
name: 'files',
id: 'fileChoose',
buttonOnly: true,
disabled:true, //此处设为disabed,【按钮灰掉】
buttonText: '<img align="center" src="./images/icons/upload.png"/> ' + lang['fileupload'],
buttonConfig: { style: {
background: 'transparent'
},
border: '0px',
},
margin: '0,5,0,0',问题: 先看注释处,然后我在别的地方触发 打开此功能
Ext.getCmp('fileChoose').setDisabled(false);功能可以使用,但是 【按钮还是灰色】??? 为什么??求教!!!!!!!!!!
extjsfilefield
bodyStyle: {
background: 'transparent',
border: '0px',
height: '15px'
},
items: [{ //form 下包一个 'filefield'
xtype: 'filefield',
name: 'files',
id: 'fileChoose',
buttonOnly: true,
disabled:true, //此处设为disabed,【按钮灰掉】
buttonText: '<img align="center" src="./images/icons/upload.png"/> ' + lang['fileupload'],
buttonConfig: { style: {
background: 'transparent'
},
border: '0px',
},
margin: '0,5,0,0',问题: 先看注释处,然后我在别的地方触发 打开此功能
Ext.getCmp('fileChoose').setDisabled(false);功能可以使用,但是 【按钮还是灰色】??? 为什么??求教!!!!!!!!!!
extjsfilefield
重新渲染下
TypeError: protoEl is null
protoEl.writeTo(data);
数据一直在加载
TypeError: protoEl is null
protoEl.writeTo(data);
数据一直在加载重新渲染 我给的代码可能不对 好久没碰exj了
思路就是重新渲染 或者是 layout
数据,监听 下 load事件中
if (filePathShard == 'shared_files' && obj.data.length != 0)
{
Ext.getCmp('fileChoose').setDisabled(true);
console.info("ok");
}
打印出ok,按钮不可用,样式仍高亮。