Skip to content

Commit e44a389

Browse files
committed
chore(demos): export sample type error and cleanup, update import
1 parent a1bdcc9 commit e44a389

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

src/app/grid-export/grid-export.sample.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { Component, ViewChild } from '@angular/core';
22
import {
3-
IgxColumnComponent,
3+
ColumnType,
44
IgxNumberSummaryOperand,
55
IgxSummaryResult,
6-
IgxExcelExporterService,
76
IGridToolbarExportEventArgs,
87
IgxExporterOptionsBase,
9-
IgxExcelExporterOptions,
108
IColumnExportingEventArgs,
119
IRowExportingEventArgs,
1210
IgxGridComponent,
@@ -91,31 +89,31 @@ export class GridExportComponent {
9189
this.productId = GRID_DATA.length;
9290
}
9391

94-
public toggleSummary(column: IgxColumnComponent) {
92+
public toggleSummary(column: ColumnType) {
9593
column.hasSummary = !column.hasSummary;
9694
this.grid.summaryService.clearSummaryCache();
9795
this.tGrid.summaryService.clearSummaryCache();
9896
}
9997

10098
public configureExport(args: IGridToolbarExportEventArgs) {
10199
console.log(args);
102-
//const options: IgxExporterOptionsBase = args.options;
100+
// const options: IgxExporterOptionsBase = args.options;
101+
102+
// // Change exporter options
103103

104-
// Change exporter options
105-
//
106104
// options.fileName = `Report_${new Date().toDateString()}`;
107105
// options.exportSummaries = false;
108106

109-
// Cancel column exporting
110-
//
107+
// // Cancel column exporting
108+
111109
// args.exporter.columnExporting.subscribe((colExportingArgs: IColumnExportingEventArgs) => {
112110
// if (colExportingArgs.columnIndex === 1) {
113111
// colExportingArgs.cancel = true;
114112
// }
115113
// });
116114

117-
// Cancel row exporting
118-
//
115+
// // Cancel row exporting
116+
119117
// args.exporter.rowExporting.subscribe((rowExportingArgs: IRowExportingEventArgs) => {
120118
// if (rowExportingArgs.rowIndex === 1) {
121119
// rowExportingArgs.cancel = true;

src/app/grid-filter-template/grid-filter-template.sample.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import {
55
IgxNumberFilteringOperand,
66
IgxDateFilteringOperand,
77
IgxStringFilteringOperand,
8-
// ColumnType,
8+
ColumnType,
99
GridSelectionMode
1010
} from 'igniteui-angular';
11-
import { ColumnType } from 'projects/igniteui-angular/src/lib/grids/common/grid.interface';
1211

1312
@Component({
1413
providers: [],

0 commit comments

Comments
 (0)