ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
17 lines (16 loc) • 1.32 kB
TypeScript
import type { AgColumn } from '../entities/agColumn';
import type { IRowNode } from '../interfaces/iRowNode';
/**
* The columns the cell at `index` spans, as the grid draws it: its colSpan, stopped at the last column, at its
* pinned lane's edge and at a column not displayed next to it; a column not displayed spans only itself.
* @internal AG_GRID_INTERNAL - Not for public use. Can change / be removed at any time.
*/
export declare function _getDrawnColSpan(cols: AgColumn[], index: number, rowNode: IRowNode): number;
/**
* The columns starting a cell in `rowNode`. `filterCallback` is only set for the virtualised centre, where a
* col-spanned run is kept if ANY col it spans passes.
* @param colSpans the row's drawn colSpans by `colSpanIndex`, 0 where not read yet; filled as the walk reads them
*/
export declare function _getColsForRow(rowNode: IRowNode, displayedColumns: AgColumn[], colSpans: number[] | null | undefined, filterCallback: ((column: AgColumn) => boolean) | null, emptySpaceBeforeColumn: ((column: AgColumn) => boolean) | null): AgColumn[];
/** The drawn colSpan of the cell at `index`, read once per row when `colSpans` keeps the row's colSpans. */
export declare function _getRowColSpan(rowNode: IRowNode, cols: AgColumn[], index: number, colSpans: number[] | null | undefined): number;