Skip to content

Commit b89e5a0

Browse files
authored
Merge pull request #10246 from IgniteUI/kdragieva/fix-check-warnings
Fix warnings in dev demos
2 parents bc37310 + b0735c0 commit b89e5a0

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

src/app/grid-cell-api/grid-cell-api.sample.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import {
44
IgxTreeGridComponent,
55
IgxHierarchicalGridComponent,
66
CellType,
7-
IgxGridTransaction,
8-
IgxTransactionService
97
} from 'igniteui-angular';
108
import { HIERARCHICAL_SAMPLE_DATA } from '../shared/sample-data';
119

src/app/grid-row-api/grid-row-api.sample.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
IgxHierarchicalGridComponent,
77
IPinningConfig,
88
RowPinningPosition,
9-
IRowDragStartEventArgs,
109
GridSummaryCalculationMode,
1110
GridSummaryPosition
1211
} from 'igniteui-angular';
@@ -179,7 +178,6 @@ export class GridRowAPISampleComponent implements OnInit {
179178
public togglePinning(grid: IgxGridComponent | IgxTreeGridComponent | IgxHierarchicalGridComponent,
180179
byIndex: boolean, index: number, key: any) {
181180
const row: RowType = byIndex ? grid.getRowByIndex(index) : grid.getRowByKey(key);
182-
const index2: number = row.index;
183181
if (row.pinned) {
184182
row.unpin();
185183
} else {
@@ -308,16 +306,15 @@ export class GridRowAPISampleComponent implements OnInit {
308306
}
309307
}
310308

311-
public onEnter(args) {
309+
public onEnter() {
312310
this.dragIcon = 'add';
313311
}
314-
public onRowDragStart(args: IRowDragStartEventArgs) {
315-
const row = args.dragData;
312+
public onRowDragStart() {
316313
const count = this.grid.selectedRows.length || 1;
317314
this.countIcon = `filter_${count > 9 ? '9_plus' : `${count}`}`;
318315
}
319-
public onLeave(args) {
320-
this.onRowDragStart(args);
316+
public onLeave() {
317+
this.onRowDragStart();
321318
this.dragIcon = 'arrow_right_alt';
322319
}
323320
}

src/app/tree-grid-groupby/tree-grid-groupby.sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class TreeGridGroupBySampleComponent implements OnInit {
5959
this.density = this.displayDensities[event.index].label;
6060
}
6161

62-
public cellEditDone(event: any) {
62+
public cellEditDone() {
6363
this.groupingExpressions = [...this.groupingExpressions]; // will trigger grouping pipe
6464
}
6565
}

src/app/tree/tree.sample.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,14 @@ export class TreeSampleComponent implements AfterViewInit, OnDestroy {
188188

189189
public ngAfterViewInit() {
190190
this.tree.nodes.toArray().forEach(node => {
191-
node.selectedChange.subscribe((ev) => {
192-
// console.log(ev);
193-
});
191+
node.selectedChange.subscribe(() => {});
194192
});
195193
}
196194

197195
public ngOnDestroy() {
198196
}
199197

200-
public toggleSelectionMode(args) {
201-
// this.tree.selection = this.selectionModes[args.index].selectMode;
202-
}
198+
public toggleSelectionMode() { }
203199

204200
public changeDensity(args) {
205201
this.density = this.displayDensities[args.index].selectMode;

0 commit comments

Comments
 (0)