ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
18 lines (17 loc) • 1.26 kB
TypeScript
import type { Bean, BeanCollection, GridOptions, GridOptionsService, IRowNode, NestedDataGetter, RowNode, StageExecuteParams } from 'ag-grid-community';
export interface IRowGroupingStrategy<TData = any> extends Bean {
/** Getter for grid option treeDataChildrenField, only not null for tree nested data. */
readonly nestedDataGetter?: NestedDataGetter<TData> | null;
/** Gets a group or a filler node, as those nodes do not exists in ClientSideNodeManager */
getNode(id: string): RowNode<TData> | undefined;
onPropChange?(changedProps: ReadonlySet<keyof GridOptions<any>> | null): void;
execute(params: StageExecuteParams<TData>): boolean | undefined | void;
}
/**
* Returns if the node and all of its parents are all firstChild until ancestor node is reached
* This is to check for [groupHideOpenParents] where we only show the expand controls for first child of a group
*
* @returns returns if node and all of its parents are first child until ancestor node is reached
*/
export declare function _isHiddenParent(node: RowNode, ancestor: RowNode, gos: GridOptionsService): boolean;
export declare const _getRowDefaultExpanded: (beans: BeanCollection, rowNode: IRowNode, level: number, group?: boolean | undefined) => boolean;