Class IgxExcelExporterService

Ignite UI for Angular Excel Exporter Service - Documentation

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:

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"));

Hierarchy

Properties

onColumnExport

onColumnExport: EventEmitter<IColumnExportingEventArgs> = new EventEmitter<IColumnExportingEventArgs>()

This event is emitted when a column is exported.

this.exporterService.onColumnExport.subscribe((args: IColumnExportingEventArgs) => {
// put event handler code here
});
memberof

IgxBaseExporter

onExportEnded

onExportEnded: EventEmitter<IExcelExportEndedEventArgs> = new EventEmitter<IExcelExportEndedEventArgs>()

This event is emitted when the export process finishes.

this.exporterService.onExportEnded.subscribe((args: IExcelExportEndedEventArgs) => {
// put event handler code here
});
memberof

IgxExcelExporterService

onRowExport

onRowExport: EventEmitter<IRowExportingEventArgs> = new EventEmitter<IRowExportingEventArgs>()

This event is emitted when a row is exported.

this.exporterService.onRowExport.subscribe((args: IRowExportingEventArgs) => {
// put event handler code here
});
memberof

IgxBaseExporter

Methods

export

exportData