UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

35 lines (34 loc) 1.46 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Injectable } from "@angular/core"; import * as i0 from "@angular/core"; // Incremented each time the service is instantiated. let sequence = 0; /** * @hidden */ export class IdService { prefix; constructor() { this.prefix = `k-grid${sequence++}`; } gridId() { return this.prefix; } cellId(rowIndex, colIndex) { return `${this.prefix}-r${rowIndex}c${colIndex}`; } selectionCheckboxId(itemIndex) { return `${this.prefix}-checkbox${itemIndex}`; } selectAllCheckboxId() { return `${this.prefix}-select-all`; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IdService }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IdService, decorators: [{ type: Injectable }], ctorParameters: function () { return []; } });