@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.
14 lines (12 loc) • 613 B
text/typescript
import { GridBaseRow } from '../Grid';
import { ColDefT, GenericCellEditorProps, GridCell } from '../GridCell';
import { GridFormTextInput, GridFormTextInputProps } from '../gridForm/GridFormTextInput';
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
export const GridPopoverTextInput = <TData extends GridBaseRow, TValue = any>(
colDef: GenericCellColDef<TData, TValue>,
params: GenericCellEditorProps<GridFormTextInputProps<TData>>,
): ColDefT<TData, TValue> =>
GridCell<TData, TValue, GridFormTextInputProps<TData>>(colDef, {
editor: GridFormTextInput,
...params,
});