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

Index

Constructors

constructor

Properties

columnExporting

columnExporting: EventEmitter<IColumnExportingEventArgs> = ...

This event is emitted when a column is exported.

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

IgxBaseExporter

exportEnded

exportEnded: EventEmitter<IExcelExportEndedEventArgs> = ...

This event is emitted when the export process finishes.

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

IgxExcelExporterService

rowExporting

rowExporting: EventEmitter<IRowExportingEventArgs> = ...

This event is emitted when a row is exported.

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

IgxBaseExporter

Methods

export

exportData