ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
18 lines (17 loc) • 812 B
TypeScript
import type { BeanStub } from '../context/beanStub';
import type { RowNode } from '../entities/rowNode';
import type { RowCtrl } from '../rendering/row/rowCtrl';
export interface IStickyRowFeature {
stickyTopRowCtrls: RowCtrl[];
stickyBottomRowCtrls: RowCtrl[];
refreshStickyNode(stickRowNode: RowNode): void;
checkStickyRows(): boolean;
extraTopHeight: number;
extraBottomHeight: number;
resetOffsets(): void;
destroyStickyCtrls(): void;
ensureRowHeightsValid(): boolean;
}
export interface IStickyRowService {
createStickyRowFeature(ctrl: BeanStub, createRowCon: (rowNode: RowNode, animate: boolean, afterScroll: boolean) => RowCtrl, destroyRowCtrls: (rowCtrlsMap: Record<string, RowCtrl> | null | undefined, animate: boolean) => void): IStickyRowFeature | undefined;
}