UNPKG

@linzjs/step-ag-grid

Version:

[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) > Reusable [ag-grid](https://www.ag-grid.com/) component for LINZ / Toitū te whenua.

19 lines (18 loc) 772 B
import { ReactElement } from 'react'; import { GridBaseRow } from '../components/Grid'; export interface TextInputValidatorProps<TData extends GridBaseRow> { required?: boolean; maxLength?: number; maxBytes?: number; invalid?: (value: string, data: TData, context: any) => ReactElement | string | null; numberFormat?: { precision?: number; scale?: number; gtMin?: number; geMin?: number; ltMax?: number; leMax?: number; notZero?: boolean; }; } export declare const TextInputValidator: <TData extends GridBaseRow>(props: TextInputValidatorProps<TData>, value: string | null, data: TData, context: any) => string | ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;