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.

21 lines (19 loc) 686 B
import { GridBaseRow } from '../Grid'; import { ColDefT, GenericCellEditorProps, GridCell } from '../GridCell'; import { GridFormMessage, GridFormMessageProps } from '../gridForm/GridFormMessage'; import { GenericCellColDef } from '../gridRender/GridRenderGenericCell'; export const GridPopoverMessage = <TData extends GridBaseRow, TValue = any>( colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormMessageProps<TData>>, ): ColDefT<TData, TValue> => GridCell<TData, TValue, GridFormMessageProps<TData>>( { resizable: true, ...colDef, singleClickEdit: true, }, { editor: GridFormMessage, ...props, }, );