跳到主要内容

makeEditorForReadonly()

function makeEditorForReadonly(editorName):
| string
| IEditor<any, any>
| ((args) => string | IEditor<any, any>)
| undefined;

Defined in: packages/rxdb-model/dist/entity-table/columns/column-utils.d.ts:91

构建编辑器函数:非只读行使用指定编辑器名称,只读行返回 undefined

用于 ColumnDefine.editor,以便在行级别区分只读/可编辑状态。

Parameters​

ParameterTypeDescription
editorNamestring非只读行使用的编辑器名称

Returns​

| string | IEditor<any, any> | ((args) => string | IEditor<any, any>) | undefined

可挂载到 ColumnDefine.editor 的编辑器回调