Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / EditorRowApi

Interface: EditorRowApi

Writes a custom editor may make to ITS row (P-4.3).

Methods

setRowValues()

setRowValues(values): boolean

Write several fields of the editor's row in ONE step — a picker writing code, name and id together: one undo step, one validation pass, one save in cell mode, pending in batch. All or nothing: editable: false columns ARE written (that flag only stops the user typing), a row lock (allowUpdating refusing the row/column) or a failing rule writes none and answers false. The editor stays open; if its own column is among the fields it shows the new value. Same as EditingApi.setRowValues(rowKey, …).

Parameters

values

Readonly<Record<string, unknown>>

Returns

boolean