我在 extjs 网格中有一个文本字段,如下所示:
part : {
fieldLabelToken: 'label.Structure.InstallRemoveItem.Part',
mapping : 'removedPart.part',
ref : '../../../removedPartField', allowInvalid : true,
textOnly :config.textOnly,
listeners: {
'select':function(combo,rec,index){
if(!params.viewOnly && !config.textOnly){
this.refOwner.removedTrackedField.setValue(rec.get("tracked"));
this.refOwner.transformPosInfoFields(rec.get("tracked"));
delete this.refOwner.selectedItemId;
}
}
}
}
我在同一张表格上有这样的复选框:
{
fieldLabelToken: 'label.Structure.Maintained.Structuremaintenance.InstallRemoveItem.PendingPartRemove',
mapping : 'pendingPartRemove',
xtype: 'checkbox',
ref : 'pendingPartRemove',
disabled : false
}
如果单击 InstallRemve 复选框,如何将部件字段的 allowInvalid 更改为 false?
提前致谢