ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
41 lines (40 loc) • 1.44 kB
TypeScript
import type { BeanCollection } from '../context/context';
import { Component } from '../widgets/component';
export declare class PageSummaryComp extends Component {
private rowModel;
private pagination;
private readonly btFirst;
private readonly btPrevious;
private readonly btNext;
private readonly btLast;
private readonly lbCurrentInput;
private readonly lbCurrentStatic;
private readonly lbTotal;
private previousAndFirstButtonsDisabled;
private nextButtonDisabled;
private lastButtonDisabled;
ariaStatus: string;
private readonly idPrefix;
private readonly suppressPageInput;
constructor(idPrefix: string, suppressPageInput?: boolean);
wireBeans(beans: BeanCollection): void;
postConstruct(): void;
private initNavButtons;
private initPageInput;
private onBtFirst;
private onBtPrevious;
private onBtNext;
private onBtLast;
private commitPageInput;
/**
* The 1-based page number shown to the user. With no pages at all this is 0, so an empty grid reads
* `Page 0 of 0` alongside its `0 to 0 of 0` row summary. While the last row index is still unknown
* (data loading, or infinite scroll) it stays at 1, as page 1 is yet to arrive.
*/
private getDisplayPageNumber;
refresh(): void;
private enableOrDisableButtons;
private toggleButtonDisabled;
private updateLabels;
private formatNumber;
}