@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.
19 lines (18 loc) • 1.03 kB
TypeScript
import { ColumnState, ProcessCellForExportParams } from 'ag-grid-community';
import { PropsWithChildren, ReactElement } from 'react';
import { GridBaseRow } from '../components';
export declare const colStateId: (colState: ColumnState) => string;
export declare const colStateFlexed: (colState: ColumnState) => boolean;
export declare const colStateNotFlexed: (colState: ColumnState) => boolean;
/**
* 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;