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.

14 lines (12 loc) 613 B
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, });