xsy-breeze-ui-rpa > FormSubEntityTableExtensionPointBatch > setCellReadonlyRule
FormSubEntityTableExtensionPointBatch.setCellReadonlyRule property
设置单元格只读规则 itemApiKey: 字段的apiKey rule: 只读规则。 例如:[{itemApiKey: 'customItem1__c', rule: "$data.name === 'test'"}]。$data: 当前行数据, name: 列apiKey. 这个规则意义:行数据的name字段等于 'test' 时, customItem1__c 字段只读。
Signature:
setCellReadonlyRule: (value: {
itemApiKey: string;
rule: string;
}[]) => Promise<any>;
