@progress/kendo-angular-menu
Version:
Kendo UI Angular Menu component
28 lines (27 loc) • 1.45 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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 { ContextMenuService } from './context-menu.service';
import * as i0 from "@angular/core";
import * as i1 from "./context-menu.service";
/**
* @hidden
*/
export class ContextMenuItemsService {
contextService;
constructor(contextService) {
this.contextService = contextService;
}
get(index) {
if (this.contextService.items) {
return this.contextService.items.get(index);
}
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContextMenuItemsService, deps: [{ token: i1.ContextMenuService }], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContextMenuItemsService });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ContextMenuItemsService, decorators: [{
type: Injectable
}], ctorParameters: function () { return [{ type: i1.ContextMenuService }]; } });