|
1 | 1 | import { Component, ViewChild } from '@angular/core'; |
2 | 2 | import { |
3 | | - IgxColumnComponent, |
| 3 | + ColumnType, |
4 | 4 | IgxNumberSummaryOperand, |
5 | 5 | IgxSummaryResult, |
6 | | - IgxExcelExporterService, |
7 | 6 | IGridToolbarExportEventArgs, |
8 | 7 | IgxExporterOptionsBase, |
9 | | - IgxExcelExporterOptions, |
10 | 8 | IColumnExportingEventArgs, |
11 | 9 | IRowExportingEventArgs, |
12 | 10 | IgxGridComponent, |
@@ -91,31 +89,31 @@ export class GridExportComponent { |
91 | 89 | this.productId = GRID_DATA.length; |
92 | 90 | } |
93 | 91 |
|
94 | | - public toggleSummary(column: IgxColumnComponent) { |
| 92 | + public toggleSummary(column: ColumnType) { |
95 | 93 | column.hasSummary = !column.hasSummary; |
96 | 94 | this.grid.summaryService.clearSummaryCache(); |
97 | 95 | this.tGrid.summaryService.clearSummaryCache(); |
98 | 96 | } |
99 | 97 |
|
100 | 98 | public configureExport(args: IGridToolbarExportEventArgs) { |
101 | 99 | console.log(args); |
102 | | - //const options: IgxExporterOptionsBase = args.options; |
| 100 | + // const options: IgxExporterOptionsBase = args.options; |
| 101 | + |
| 102 | + // // Change exporter options |
103 | 103 |
|
104 | | - // Change exporter options |
105 | | - // |
106 | 104 | // options.fileName = `Report_${new Date().toDateString()}`; |
107 | 105 | // options.exportSummaries = false; |
108 | 106 |
|
109 | | - // Cancel column exporting |
110 | | - // |
| 107 | + // // Cancel column exporting |
| 108 | + |
111 | 109 | // args.exporter.columnExporting.subscribe((colExportingArgs: IColumnExportingEventArgs) => { |
112 | 110 | // if (colExportingArgs.columnIndex === 1) { |
113 | 111 | // colExportingArgs.cancel = true; |
114 | 112 | // } |
115 | 113 | // }); |
116 | 114 |
|
117 | | - // Cancel row exporting |
118 | | - // |
| 115 | + // // Cancel row exporting |
| 116 | + |
119 | 117 | // args.exporter.rowExporting.subscribe((rowExportingArgs: IRowExportingEventArgs) => { |
120 | 118 | // if (rowExportingArgs.rowIndex === 1) { |
121 | 119 | // rowExportingArgs.cancel = true; |
|
0 commit comments