@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
32 lines (31 loc) • 1.15 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* @hidden
*/
export class NavigationMetadata {
dataRows;
headerRows;
isVirtual;
hasPager;
hasDetailTemplate;
gridElement;
virtualColumns;
columns;
get maxLogicalRowIndex() {
const dataRows = this.hasDetailTemplate ? this.dataRows * 2 : this.dataRows;
return this.headerRows + dataRows - 1;
}
constructor(dataRows, headerRows, isVirtual, hasPager, hasDetailTemplate, gridElement, virtualColumns, columns) {
this.dataRows = dataRows;
this.headerRows = headerRows;
this.isVirtual = isVirtual;
this.hasPager = hasPager;
this.hasDetailTemplate = hasDetailTemplate;
this.gridElement = gridElement;
this.virtualColumns = virtualColumns;
this.columns = columns;
}
}