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.

16 lines (15 loc) 805 B
import { ProcessCellForExportParams } from 'ag-grid-community'; import { PropsWithChildren, ReactElement } from 'react'; import { GridBaseRow } from '../components'; /** * Context for AgGrid operations. * Make sure you wrap AgGrid in this. * Also, make sure the provider is created in a separate component, otherwise it won't be found. */ export declare const GridContextProvider: <TData extends GridBaseRow>(props: PropsWithChildren) => ReactElement; /** * Aggrid defaults to using getters and ignores formatters. * step-ag-grid by default has a valueFormatter for every column that defaults to the getter if no valueFormatter * This function uses valueFormatter by default */ export declare const downloadCsvUseValueFormattersProcessCellCallback: (params: ProcessCellForExportParams) => string;