@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
42 lines (41 loc) • 1.87 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 { Directive, HostBinding, Input, isDevMode } from '@angular/core';
import { ColumnMenuService } from './column-menu.service';
import { ColumnMenuErrorMessages } from '../common/error-messages';
import * as i0 from "@angular/core";
/**
* @hidden
*/
export class ColumnMenuItemBase {
/**
* Represents the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %}) instance.
* Requires a mandatory input.
*/
service;
hostClass = true;
ngOnInit() {
if (isDevMode() && !this.service) {
throw new Error(ColumnMenuErrorMessages.serviceInput);
}
}
/**
* @hidden
*/
close() {
this.service.close();
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnMenuItemBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ColumnMenuItemBase, inputs: { service: "service" }, host: { properties: { "class.k-columnmenu-item-wrapper": "this.hostClass" } }, ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnMenuItemBase, decorators: [{
type: Directive,
args: [{}]
}], propDecorators: { service: [{
type: Input
}], hostClass: [{
type: HostBinding,
args: ['class.k-columnmenu-item-wrapper']
}] } });