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.

18 lines (17 loc) 754 B
import { RefObject } from 'react'; import { GridBaseRow } from '../components/types'; export interface GridPopoverContextType<TData extends GridBaseRow> { anchorRef: RefObject<Element>; saving: boolean; setSaving: (saving: boolean) => void; stopEditing: () => void; colId: string; field: keyof TData; value: any; data: TData; selectedRows: TData[]; updateValue: (saveFn: (selectedRows: any[]) => Promise<boolean>, tabDirection: 1 | 0 | -1) => Promise<boolean> | boolean; formatValue: (value: any) => any; } export declare const GridPopoverContext: import("react").Context<GridPopoverContextType<any>>; export declare const useGridPopoverContext: <TData extends GridBaseRow>() => GridPopoverContextType<TData>;