@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.
12 lines (11 loc) • 473 B
TypeScript
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 {};