UNPKG

@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.

35 lines (34 loc) 1.55 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { EventEmitter, Injectable, isDevMode } from '@angular/core'; import * as i0 from "@angular/core"; /** * @hidden */ export class ExcelService { saveToExcel = new EventEmitter(); exportClick = new EventEmitter(); loadingChange = new EventEmitter(); loading; save(component) { if (this.saveToExcel.observers.length === 0) { if (isDevMode()) { throw new Error('Saving excel requires including the ExcelModule and adding the <kendo-treelist-excel> component.'); } } else { this.saveToExcel.emit(component); } } toggleLoading(value) { this.loading = value; this.loadingChange.emit(); } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelService }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ExcelService, decorators: [{ type: Injectable }] });