rowNode.d.ts 622 B

12345678910111213
  1. import { RowNode } from '../entities/rowNode';
  2. /**
  3. * Gets called by: a) ClientSideNodeManager and b) GroupStage to do sorting.
  4. * when in ClientSideNodeManager we always have indexes (as this sorts the items the
  5. * user provided) but when in GroupStage, the nodes can contain filler nodes that
  6. * don't have order id's
  7. * @param {RowNode[]} rowNodes
  8. * @param {Object} rowNodeOrder
  9. */
  10. export declare function sortRowNodesByOrder(rowNodes: RowNode[], rowNodeOrder: {
  11. [id: string]: number;
  12. }): void;
  13. export declare function traverseNodesWithKey(nodes: RowNode[], callback: (node: RowNode, key: string) => void): void;