Skip to content

Commit

Permalink
feat(esf): add comments #5448
Browse files Browse the repository at this point in the history
  • Loading branch information
tachojelev committed Aug 6, 2019
1 parent 84296e7 commit 9ef3403
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions projects/igniteui-angular/src/lib/grids/grid-base.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,22 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
}
}

/**
* An @Input property that provides a callback for loading unique column values on demand.
* If this property is provided, the unique values it generates will be used by the Excel Style Filtering.
* ```html
* <igx-grid [data]="localData" [filterMode]="'excelStyleFilter'" [uniqueColumnValuesStrategy]="columnValuesStrategy"></igx-grid>
* ```
*
* ```typescript
* public columnValuesStrategy = (column: IgxColumnComponent,
* filteringExpressionsTree: IFilteringExpressionsTree,
* done: (uniqueValues: any[]) => void) => {
* this.dataService.getColumnData(column, filteringExpressionsTree, uniqueValues => done(uniqueValues));
* }
* ```
* @memberof IgxGridBaseComponent
*/
@Input()
public uniqueColumnValuesStrategy: (column: IgxColumnComponent,
filteringExpressionsTree: IFilteringExpressionsTree,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5589,7 +5589,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering', () => {
fix.detectChanges();
}));

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

0 comments on commit 9ef3403

Please sign in to comment.