Skip to content

Commit 9ef3403

Browse files
committed
feat(esf): add comments #5448
1 parent 84296e7 commit 9ef3403

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.component.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,22 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
10081008
}
10091009
}
10101010

1011+
/**
1012+
* An @Input property that provides a callback for loading unique column values on demand.
1013+
* If this property is provided, the unique values it generates will be used by the Excel Style Filtering.
1014+
* ```html
1015+
* <igx-grid [data]="localData" [filterMode]="'excelStyleFilter'" [uniqueColumnValuesStrategy]="columnValuesStrategy"></igx-grid>
1016+
* ```
1017+
*
1018+
* ```typescript
1019+
* public columnValuesStrategy = (column: IgxColumnComponent,
1020+
* filteringExpressionsTree: IFilteringExpressionsTree,
1021+
* done: (uniqueValues: any[]) => void) => {
1022+
* this.dataService.getColumnData(column, filteringExpressionsTree, uniqueValues => done(uniqueValues));
1023+
* }
1024+
* ```
1025+
* @memberof IgxGridBaseComponent
1026+
*/
10111027
@Input()
10121028
public uniqueColumnValuesStrategy: (column: IgxColumnComponent,
10131029
filteringExpressionsTree: IFilteringExpressionsTree,

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5589,7 +5589,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering', () => {
55895589
fix.detectChanges();
55905590
}));
55915591

5592-
fit('TEST', fakeAsync(() => {
5592+
it('Verify unique values are loaded correctly in ESF search component.', fakeAsync(() => {
55935593
// Open excel style custom filtering dialog and wait a bit.
55945594
GridFunctions.clickExcelFilterIcon(fix, 'ProductName');
55955595
fix.detectChanges();

0 commit comments

Comments
 (0)