ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
26 lines (25 loc) • 1.54 kB
TypeScript
import type { AgColumn, ColumnModel, RowNode } from 'ag-grid-community';
/**
* Traverses `rowNode.childrenMapped` using pivot keys to resolve the matching RowNode array.
* Used by {@link AggregatedChildrenSvc} to resolve pivot children for `getAggregatedChildren`,
* and by {@link AggregationStage} to collect values for pivot column aggregation.
*/
export declare const getNodesFromMappedSet: (mappedSet: any, keys: string[] | null | undefined) => RowNode[];
/** An aggData key and the column it came from. Structurally a {@link ResolvedValueColumn}. */
export interface AggDataEventCol {
readonly colId: string;
readonly column: AgColumn;
}
/**
* The columns an aggData object is keyed by, resolved once per aggregation, so the per-row event loop
* costs no `Object.keys` allocation. Only the non-pivot path can supply it.
*/
export interface AggDataEventCols {
readonly cols: readonly AggDataEventCol[];
/** Whether the previous aggData can hold a key `cols` no longer names, so removals need detecting. */
readonly checkRemoved: boolean;
}
/** Sets aggData and fires cell-changed events if listeners are registered. */
export declare const setAggData: (rowNode: RowNode, newAggData: Record<string, any> | null, colModel: ColumnModel, eventCols?: AggDataEventCols) => void;
/** Sets aggData on a row node and all its siblings (footer + pinned). */
export declare const setAggDataWithSiblings: (rowNode: RowNode, newAggData: Record<string, any> | null, colModel: ColumnModel, eventCols?: AggDataEventCols) => void;