@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.45 kB
TypeScript
import { ValueFormatterParams } from 'ag-grid-community';
import { GenericCellEditorProps } from '../GridCell';
import { GridFormEditBearingProps } from '../gridForm/GridFormEditBearing';
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
import { ColDefT, GridBaseRow } from '../types';
export declare const GridCellBearingValueFormatter: (params: ValueFormatterParams) => string;
export declare const GridPopoverEditBearingEditorParams: {
placeHolder: string;
formatValue: (value: any) => string;
range: (value: number | null) => "Bearing is required" | "Bearing must be less than 360 degrees" | "Bearing must not be negative" | null;
};
export declare const GridPopoverEditBearing: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormEditBearingProps<TData>>) => ColDefT<TData, TValue>;
export declare const GridPopoverEditBearingCorrectionEditorParams: {
placeHolder: string;
formatValue: (value: any) => string;
range: (value: number | null) => "Bearing correction is required" | "Bearing correction must be less than 360 degrees" | "Bearing correction must be greater then -180 degrees" | null;
};
export declare const GridPopoverEditBearingCorrection: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormEditBearingProps<TData>>) => ColDefT<TData, TValue>;