@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) • 609 B
text/typescript
import { GenericCellEditorProps, GridCell } from '../GridCell';
import { GridFormInlineTextInput } from '../gridForm/GridFormInlineTextInput';
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
import { ColDefT, GridBaseRow } from '../types';
export const GridInlineTextInput = <TData extends GridBaseRow, TValue = any>(
colDef: GenericCellColDef<TData, TValue>,
params: GenericCellEditorProps<GridFormInlineTextInput<TData>>,
): ColDefT<TData, TValue> =>
GridCell<TData, TValue, GridFormInlineTextInput<TData>>(colDef, {
editor: GridFormInlineTextInput,
...params,
});