@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.
11 lines (9 loc) • 595 B
text/typescript
import { GridBaseRow } from '../Grid';
import { ColDefT, GenericCellEditorProps, GridCell } from '../GridCell';
import { GridFormTextArea, GridFormTextAreaProps } from '../gridForm/GridFormTextArea';
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
export const GridPopoverTextArea = <TData extends GridBaseRow, TValue = any>(
colDef: GenericCellColDef<TData, TValue>,
params: GenericCellEditorProps<GridFormTextAreaProps<TData>>,
): ColDefT<TData, TValue> =>
GridCell<TData, TValue, GridFormTextAreaProps<TData>>(colDef, { editor: GridFormTextArea, ...params });