@linzjs/step-ag-grid
Version:
[](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
TypeScript
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;