diff --git a/src/app/grid-cell-api/grid-cell-api.sample.ts b/src/app/grid-cell-api/grid-cell-api.sample.ts index dd779c71e7b..8120a1c190a 100644 --- a/src/app/grid-cell-api/grid-cell-api.sample.ts +++ b/src/app/grid-cell-api/grid-cell-api.sample.ts @@ -4,8 +4,6 @@ import { IgxTreeGridComponent, IgxHierarchicalGridComponent, CellType, - IgxGridTransaction, - IgxTransactionService } from 'igniteui-angular'; import { HIERARCHICAL_SAMPLE_DATA } from '../shared/sample-data'; diff --git a/src/app/grid-row-api/grid-row-api.sample.ts b/src/app/grid-row-api/grid-row-api.sample.ts index 5db1ab23d86..1e99244d6a3 100644 --- a/src/app/grid-row-api/grid-row-api.sample.ts +++ b/src/app/grid-row-api/grid-row-api.sample.ts @@ -6,7 +6,6 @@ import { IgxHierarchicalGridComponent, IPinningConfig, RowPinningPosition, - IRowDragStartEventArgs, GridSummaryCalculationMode, GridSummaryPosition } from 'igniteui-angular'; @@ -179,7 +178,6 @@ export class GridRowAPISampleComponent implements OnInit { public togglePinning(grid: IgxGridComponent | IgxTreeGridComponent | IgxHierarchicalGridComponent, byIndex: boolean, index: number, key: any) { const row: RowType = byIndex ? grid.getRowByIndex(index) : grid.getRowByKey(key); - const index2: number = row.index; if (row.pinned) { row.unpin(); } else { @@ -308,16 +306,15 @@ export class GridRowAPISampleComponent implements OnInit { } } - public onEnter(args) { + public onEnter() { this.dragIcon = 'add'; } - public onRowDragStart(args: IRowDragStartEventArgs) { - const row = args.dragData; + public onRowDragStart() { const count = this.grid.selectedRows.length || 1; this.countIcon = `filter_${count > 9 ? '9_plus' : `${count}`}`; } - public onLeave(args) { - this.onRowDragStart(args); + public onLeave() { + this.onRowDragStart(); this.dragIcon = 'arrow_right_alt'; } } diff --git a/src/app/tree-grid-groupby/tree-grid-groupby.sample.ts b/src/app/tree-grid-groupby/tree-grid-groupby.sample.ts index ee2d9e9fa8a..e0c84c53120 100644 --- a/src/app/tree-grid-groupby/tree-grid-groupby.sample.ts +++ b/src/app/tree-grid-groupby/tree-grid-groupby.sample.ts @@ -59,7 +59,7 @@ export class TreeGridGroupBySampleComponent implements OnInit { this.density = this.displayDensities[event.index].label; } - public cellEditDone(event: any) { + public cellEditDone() { this.groupingExpressions = [...this.groupingExpressions]; // will trigger grouping pipe } } diff --git a/src/app/tree/tree.sample.ts b/src/app/tree/tree.sample.ts index 12130a78cf4..6de7c7cce31 100644 --- a/src/app/tree/tree.sample.ts +++ b/src/app/tree/tree.sample.ts @@ -188,18 +188,14 @@ export class TreeSampleComponent implements AfterViewInit, OnDestroy { public ngAfterViewInit() { this.tree.nodes.toArray().forEach(node => { - node.selectedChange.subscribe((ev) => { - // console.log(ev); - }); + node.selectedChange.subscribe(() => {}); }); } public ngOnDestroy() { } - public toggleSelectionMode(args) { - // this.tree.selection = this.selectionModes[args.index].selectMode; - } + public toggleSelectionMode() { } public changeDensity(args) { this.density = this.displayDensities[args.index].selectMode;