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.

11 lines (9 loc) 595 B
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 });