Skip to content

@jsvision/datagrid / RowValidation

Interface: RowValidation

Defined in: datagrid/src/validation.ts:39

The result of a per-row cross-field validateRow check: ok accepts the row; on !ok the row-leave is blocked, message is surfaced, and the cursor refocuses the column named by field (falling back to the current column when field is absent or unknown).

Properties

field?

readonly optional field?: string

Defined in: datagrid/src/validation.ts:45

The column id to refocus on failure (the offending field).


message?

readonly optional message?: string

Defined in: datagrid/src/validation.ts:43

The message to surface on failure.


ok

readonly ok: boolean

Defined in: datagrid/src/validation.ts:41

Whether the row passes — false blocks the leave.