← DataGrid API

Type · v2.7.1

NgbGridBatchValidator

Validator receives proposed changes and AbortSignal, returning cell errors or a Promise. Errors contain rowId, field and message.

Import

import type { NgbGridBatchValidator } from '@angular-bootstrap/ngbootstrap';

Declaration

type NgbGridBatchValidator<T> = (changes: readonly NgbGridBatchRowChange<T>[], signal: AbortSignal) => readonly NgbGridBatchCellError[] | Promise<readonly NgbGridBatchCellError[]>;

Referenced types

Source: types/angular-bootstrap-ngbootstrap.d.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.