UNPKG

igniteui-angular

Version:

Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps

48 lines (47 loc) 1.85 kB
import { EventEmitter } from '@angular/core'; import { IgxExcelExporterOptions } from './excel-exporter-options'; import { IExportRecord, IgxBaseExporter } from '../exporter-common/base-export-service'; import { IBaseEventArgs } from '../../core/utils'; import * as i0 from "@angular/core"; export interface IExcelExportEndedEventArgs extends IBaseEventArgs { xlsx?: Object; } /** * **Ignite UI for Angular Excel Exporter Service** - * [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/exporter_excel.html) * * The Ignite UI for Angular Excel Exporter service can export data in Microsoft® Excel® format from both raw data * (array) or from an `IgxGrid`. * * Example: * ```typescript * public localData = [ * { Name: "Eric Ridley", Age: "26" }, * { Name: "Alanis Brook", Age: "22" }, * { Name: "Jonathan Morris", Age: "23" } * ]; * * constructor(private excelExportService: IgxExcelExporterService) { * } * * this.excelExportService.exportData(this.localData, new IgxExcelExporterOptions("FileName")); * ``` */ export declare class IgxExcelExporterService extends IgxBaseExporter { /** * This event is emitted when the export process finishes. * ```typescript * this.exporterService.exportEnded.subscribe((args: IExcelExportEndedEventArgs) => { * // put event handler code here * }); * ``` * * @memberof IgxExcelExporterService */ exportEnded: EventEmitter<IExcelExportEndedEventArgs>; private static populateZipFileConfig; protected exportDataImplementation(data: IExportRecord[], options: IgxExcelExporterOptions, done: () => void): void; private saveFile; static ɵfac: i0.ɵɵFactoryDeclaration<IgxExcelExporterService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<IgxExcelExporterService>; }