ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
47 lines (46 loc) • 3.25 kB
TypeScript
import type { ColumnModel } from '../columns/columnModel';
import type { VisibleColsService } from '../columns/visibleColsService';
import type { BeanCollection } from '../context/context';
import type { AgColumn } from '../entities/agColumn';
import type { AgColumnGroup } from '../entities/agColumnGroup';
import type { HeaderPosition } from '../interfaces/iHeaderPosition';
import type { AbstractHeaderCellCtrl } from './cells/abstractCell/abstractHeaderCellCtrl';
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare function getHeaderRowCount(colModel: ColumnModel): number;
export declare function getFocusHeaderRowCount(beans: BeanCollection): number;
/** Finds the column's current menu anchor, surviving header refreshes that replace the header cell. */
export declare function getColumnHeaderMenuAnchor(beans: BeanCollection, column: AgColumn, isFilter?: boolean): HTMLElement | undefined;
export declare function createHeaderMenuSource(beans: BeanCollection, column: AgColumn | AgColumnGroup, source: HTMLElement): () => HTMLElement;
export declare function getFloatingFilterMenuAnchor(beans: BeanCollection, column: AgColumn): HTMLElement | undefined;
export declare function getAriaHeaderRowCount(beans: BeanCollection): number;
export declare function getGroupRowsHeight(beans: BeanCollection): number[];
export declare function getColumnHeaderRowHeight(beans: BeanCollection): number;
export declare function getHeaderHeight(beans: BeanCollection): number;
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare function getFloatingFiltersHeight(beans: BeanCollection): number;
export declare function isHeaderPositionEqual(headerPosA: HeaderPosition, headerPosB: HeaderPosition): boolean;
export declare function isHeaderPosition(position: unknown): position is HeaderPosition;
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export interface PinnedSectionWidths {
leftWidth: number;
centerWidth: number;
rightWidth: number;
}
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare function getPinnedSectionWidths(visibleCols: VisibleColsService, isPrint: boolean): PinnedSectionWidths;
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export interface PinnedSectionElements {
ePinnedLeft: HTMLElement;
eScrolling: HTMLElement;
ePinnedRight: HTMLElement;
}
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export interface PinnedSectionWidthsCache {
pinnedLeftWidth: number | undefined;
centerWidth: number | undefined;
pinnedRightWidth: number | undefined;
}
/** @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time. */
export declare function updatePinnedSectionWidths(visibleCols: VisibleColsService, isPrint: boolean, elements: PinnedSectionElements, cache: PinnedSectionWidthsCache): void;
/** Lane then position is the order the header renders in. */
export declare function compareCtrlsByPinnedThenLeft(a: AbstractHeaderCellCtrl, b: AbstractHeaderCellCtrl): number;