makeEditorForReadonly()
function makeEditorForReadonly(editorName):
| string
| IEditor<any, any>
| ((args) => string | IEditor<any, any>)
| undefined;
Defined in: packages/rxdb-model/src/entity-table/columns/column-utils.ts:127
构建编辑器函数:非只读行使用指定编辑器名称,只读行返回 undefined
用于 ColumnDefine.editor,以便在行级别区分只读/可编辑状态。
Parameters
| Parameter | Type | Description |
|---|---|---|
editorName | string | 非只读行使用的编辑器名称 |
Returns
| string
| IEditor<any, any>
| ((args) => string | IEditor<any, any>)
| undefined
可挂载到 ColumnDefine.editor 的编辑器回调