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.

12 lines (11 loc) 473 B
import { PostSortRowsParams } from 'ag-grid-community'; interface PostSortRowsHookProps { setStaleGrid: (stale: boolean) => void; } /** * Retains last sort order from via <AgGrid postRowSort>. * Then applies this sort until next sort column change. * Handles stale sort, when you edit a row but don't want to re-sort. */ export declare const usePostSortRowsHook: ({ setStaleGrid }: PostSortRowsHookProps) => ({ api, nodes }: PostSortRowsParams) => void; export {};