11import { Component } from '@angular/core' ;
2- import { CsvFileTypes , IColumnExportingEventArgs , IgxCsvExporterOptions , IgxExcelExporterOptions , IgxExporterOptionsBase } from 'igniteui-angular/core' ;
3- import { IGridToolbarExportEventArgs , IgxCellTemplateDirective , IgxColumnComponent , IgxGridToolbarActionsComponent , IgxGridToolbarComponent , IgxGridToolbarExporterComponent , IgxGridToolbarTitleComponent } from 'igniteui-angular/grids/core' ;
2+ import {
3+ CsvFileTypes ,
4+ IColumnExportingEventArgs ,
5+ IgxCsvExporterOptions ,
6+ IgxExcelExporterOptions ,
7+ IgxExporterOptionsBase ,
8+ IGridToolbarExportEventArgs ,
9+ IgxCellTemplateDirective ,
10+ IgxColumnComponent ,
11+ IgxGridToolbarActionsComponent ,
12+ IgxGridToolbarComponent ,
13+ IgxGridToolbarExporterComponent ,
14+ IgxGridToolbarTitleComponent
15+ } from 'igniteui-angular/grids/core' ;
416import { IgxGridComponent } from 'igniteui-angular/grids/grid' ;
517import { IgxAvatarComponent } from 'igniteui-angular/avatar' ;
618import { athletesData } from '../../data/athletesData' ;
@@ -22,8 +34,8 @@ export class GridToolbarSample3Component {
2234
2335 public configureExport ( args : IGridToolbarExportEventArgs ) {
2436 // You can customize the exporting from this event
25- const options : IgxExporterOptionsBase = args . options ;
26-
37+ const options : IgxExporterOptionsBase = args . options ;
38+
2739 options . fileName = `Report_${ new Date ( ) . toDateString ( ) } ` ;
2840
2941 if ( options instanceof IgxExcelExporterOptions ) {
@@ -38,7 +50,7 @@ export class GridToolbarSample3Component {
3850 args . exporter . columnExporting . subscribe ( ( columnArgs : IColumnExportingEventArgs ) => {
3951 // Don't export image fields
4052 columnArgs . cancel = columnArgs . header === 'Athlete' ||
41- columnArgs . header === 'Country' ;
53+ columnArgs . header === 'Country' ;
4254 } ) ;
4355 }
4456}
0 commit comments