ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
16 lines (15 loc) • 699 B
TypeScript
import { RowNode } from '../entities/rowNode';
/**
* Gets called by: a) ClientSideNodeManager and b) GroupStage to do sorting.
* when in ClientSideNodeManager we always have indexes (as this sorts the items the
* user provided) but when in GroupStage, the nodes can contain filler nodes that
* don't have order id's
* @param {RowNode[]} rowNodes
* @param {Object} rowNodeOrder
*
* @returns a boolean representing whether nodes were reordered
*/
export declare function sortRowNodesByOrder(rowNodes: RowNode[], rowNodeOrder: {
[id: string]: number;
}): boolean;
export declare function traverseNodesWithKey(nodes: RowNode[] | null, callback: (node: RowNode, key: string) => void): void;