Class IgxCsvExporterService

Ignite UI for Angular CSV Exporter Service - Documentation

The Ignite UI for Angular CSV Exporter service can export data in a Character Separated Values 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 csvExportService: IgxCsvExporterService) {
}

const opt: IgxCsvExporterOptions = new IgxCsvExporterOptions("FileName", CsvFileTypes.CSV);
this.csvExportService.exportData(this.localData, opt);

Hierarchy

Hierarchy (view full)

Constructors

Properties

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: EventEmitter<ICsvExportEndedEventArgs> = ...

This event is emitted when the export process finishes.

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

Memberof

IgxCsvExporterService

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