Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 2b69f3b

Browse files
Ghislain BeaulacGhislain Beaulac
authored andcommitted
refactor(build): add missing AngularGridInstance type
1 parent 7ddd1d5 commit 2b69f3b

8 files changed

+14
-12
lines changed

src/app/examples/grid-clientside.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class GridClientSideComponent implements OnInit {
188188
this.dataset = this.mockData(NB_ITEMS);
189189
}
190190

191-
angularGridReady(angularGrid: any) {
191+
angularGridReady(angularGrid: AngularGridInstance) {
192192
this.angularGrid = angularGrid;
193193
}
194194

src/app/examples/grid-frozen.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class GridFrozenComponent implements OnInit {
3131
this.prepareDataGrid();
3232
}
3333

34-
angularGridReady(angularGrid: any) {
34+
angularGridReady(angularGrid: AngularGridInstance) {
3535
this.angularGrid = angularGrid;
3636
this.gridObj = angularGrid.slickGrid;
3737
}

src/app/examples/grid-headermenu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class GridHeaderMenuComponent implements OnInit {
108108
this.dataset = mockDataset;
109109
}
110110

111-
angularGridReady(angularGrid: any) {
111+
angularGridReady(angularGrid: AngularGridInstance) {
112112
this.angularGrid = angularGrid;
113113
}
114114

src/app/examples/grid-localization.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,28 @@ export class GridLocalizationComponent implements OnInit {
6767
},
6868
{ id: 'start', name: 'Start', field: 'start', headerKey: 'START', formatter: Formatters.dateIso, outputType: FieldType.dateIso, type: FieldType.date, minWidth: 100, filterable: true, filter: { model: Filters.compoundDate } },
6969
{ id: 'finish', name: 'Finish', field: 'finish', headerKey: 'FINISH', formatter: Formatters.dateIso, outputType: FieldType.dateIso, type: FieldType.date, minWidth: 100, filterable: true, filter: { model: Filters.compoundDate } },
70-
{ id: 'completedBool', name: 'Completed', field: 'completedBool', headerKey: 'COMPLETED', minWidth: 100,
70+
{
71+
id: 'completedBool', name: 'Completed', field: 'completedBool', headerKey: 'COMPLETED', minWidth: 100,
7172
sortable: true,
7273
formatter: Formatters.checkmark,
7374
exportCustomFormatter: Formatters.translateBoolean,
7475
filterable: true,
7576
filter: {
76-
collection: [ { value: '', label: '' }, { value: true, labelKey: 'TRUE' }, { value: false, labelKey: 'FALSE' } ],
77+
collection: [{ value: '', label: '' }, { value: true, labelKey: 'TRUE' }, { value: false, labelKey: 'FALSE' }],
7778
model: Filters.singleSelect,
7879
enableTranslateLabel: true,
7980
filterOptions: {
8081
autoDropWidth: true
8182
}
8283
}
8384
},
84-
{ id: 'completed', name: 'Completed', field: 'completed', headerKey: 'COMPLETED', formatter: Formatters.translate, sortable: true,
85+
{
86+
id: 'completed', name: 'Completed', field: 'completed', headerKey: 'COMPLETED', formatter: Formatters.translate, sortable: true,
8587
minWidth: 100,
8688
exportWithFormatter: true, // you can set this property in the column definition OR in the grid options, column def has priority over grid options
8789
filterable: true,
8890
filter: {
89-
collection: [ { value: '', label: '' }, { value: 'TRUE', labelKey: 'TRUE' }, { value: 'FALSE', labelKey: 'FALSE' } ],
91+
collection: [{ value: '', label: '' }, { value: 'TRUE', labelKey: 'TRUE' }, { value: 'FALSE', labelKey: 'FALSE' }],
9092
collectionSortBy: {
9193
property: 'labelKey' // will sort by translated value since "enableTranslateLabel" is true
9294
},
@@ -144,7 +146,7 @@ export class GridLocalizationComponent implements OnInit {
144146
}
145147
}
146148

147-
angularGridReady(angularGrid: any) {
149+
angularGridReady(angularGrid: AngularGridInstance) {
148150
this.angularGrid = angularGrid;
149151
}
150152

src/app/examples/grid-menu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class GridMenuComponent implements OnInit {
136136
this.getData();
137137
}
138138

139-
angularGridReady(angularGrid: any) {
139+
angularGridReady(angularGrid: AngularGridInstance) {
140140
this.angularGrid = angularGrid;
141141
}
142142

src/app/examples/grid-rowdetail.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class GridRowDetailComponent implements OnInit {
3939
this.selectedLanguage = this.translate.getDefaultLang();
4040
}
4141

42-
angularGridReady(angularGrid: any) {
42+
angularGridReady(angularGrid: AngularGridInstance) {
4343
this.angularGrid = angularGrid;
4444
}
4545

src/app/examples/grid-rowmove.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class GridRowMoveComponent implements OnInit {
2424
this.selectedLanguage = this.translate.getDefaultLang();
2525
}
2626

27-
angularGridReady(angularGrid: any) {
27+
angularGridReady(angularGrid: AngularGridInstance) {
2828
this.angularGrid = angularGrid;
2929
}
3030

src/app/examples/grid-state.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class GridStateComponent implements OnInit {
4444
this.selectedLanguage = this.translate.getDefaultLang();
4545
}
4646

47-
angularGridReady(angularGrid: any) {
47+
angularGridReady(angularGrid: AngularGridInstance) {
4848
this.angularGrid = angularGrid;
4949
}
5050

0 commit comments

Comments
 (0)