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.

21 lines (20 loc) 832 B
import { TextInputValidatorProps } from '../../utils/textValidator'; import { MaybePromise } from '../../utils/util'; import { CellEditorCommon } from '../GridCell'; import { GridBaseRow } from '../types'; export interface GridFormInlineTextInput<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon { placeholder?: string; units?: string; onSave?: (props: { selectedRows: TData[]; selectedRowIds: TData['id'][]; value: string; }) => MaybePromise<boolean>; onChange?: (props: { selectedRows: TData[]; selectedRowIds: TData['id'][]; value: string; }) => void; helpText?: string; } export declare const GridFormInlineTextInput: <TData extends GridBaseRow>(props: GridFormInlineTextInput<TData>) => import("react").JSX.Element;