Type · v2.6.0
NgbGridBatchResult
Discriminated success/failure results: changedCells or copied text on success; reason and message on failure.
Import
import type { NgbGridBatchResult } from '@angular-bootstrap/ngbootstrap';Declaration
type NgbGridBatchResult = {
success: true;
changedCells: number;
} | {
success: false;
reason: 'unavailable' | 'selection' | 'identity' | 'limit' | 'parse' | 'protected' | 'validation' | 'conflict' | 'cancelled' | 'empty' | 'busy' | 'clipboard';
message: string;
};