UNPKG

lumarc-grid

Version:

lumArc Grid는 고성능, 유연하고 프레임워크에 구애받지 않는 데이터 그리드 라이브러리

17 lines 875 B
import { GridColumn } from '../../types'; import { RowId } from '../../lib/row-manager'; export interface GridValidationOptions<T extends {}> { columns: GridColumn<T>[]; data: T[]; } export interface GridValidationAPI<T> { validationErrors: Record<string, string>; hasValidationErrors: boolean; clearValidationError: (rowId: string, field: string) => void; clearAllValidationErrors: () => void; validateCell: (rowId: string, field: string, value: any, eventType: 'realtime' | 'blur' | 'submit') => string | null; validateRow: (rowId: RowId, eventType?: 'submit') => Record<string, string>; handleCellValueChange: (rowId: string, field: string, value: any) => string | null; } export declare function useGridValidation<T extends {}>(options: GridValidationOptions<T>): GridValidationAPI<T>; //# sourceMappingURL=use-grid-validation.d.ts.map