Skip to content

Commit

Permalink
feat(esf): update search size & add docs #5448
Browse files Browse the repository at this point in the history
  • Loading branch information
tachojelev committed Aug 6, 2019
1 parent 9ef3403 commit 42ad294
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes for each version of this project will be documented in this file.

## 8.2.0

### New Features
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
- `uniqueColumnValuesStrategy` input is added. This property 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 (instead of using the unique values from the data that is bound to the grid).
- `igxExcelStyleLoading` directive is added, which can be used to provide a custom loading template for the Excel Style Filtering. If this property is not provided, a default loading template will be used instead.
### General
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
- **Breaking Change** `igxExcelStyleSortingTemplate` directive is renamed to `igxExcelStyleSorting`.
- **Breaking Change** `igxExcelStyleMovingTemplate` directive is renamed to `igxExcelStyleMoving`.
- **Breaking Change** `igxExcelStyleHidingTemplate` directive is renamed to `igxExcelStyleHiding`.
- **Breaking Change** `igxExcelStylePinningTemplate` directive is renamed to `igxExcelStylePinning`.

## 8.1.2

### New Features
Expand Down
1 change: 1 addition & 0 deletions projects/igniteui-angular/src/lib/grids/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Below is the list of all inputs that the developers may set to configure the gri
|`filteringLogic`| FilteringLogic | The filtering logic of the grid. Defaults to _AND_. |
|`filteringExpressionsTree`| IFilteringExpressionsTree | The filtering state of the grid. |
|`emptyFilteredGridMessage`| string | The message displayed when there are no records and the grid is filtered.|
|`uniqueColumnValuesStrategy`| void | 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. |
|`sortingExpressions`|Array|The sorting state of the grid.|
|`rowSelectable`|boolean|Enables multiple row selection, default is _false_.|
|`height`|string|The height of the grid element. You can pass values such as `1000px`, `75%`, etc.|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit {
constructor(private _cdr: ChangeDetectorRef) { }

public ngAfterViewInit() {
this.refreshSize();
}

public refreshSize() {
requestAnimationFrame(() => {
this.virtDir.recalcUpdateSizes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy, OnInit, A

this.renderValues(columnValues);
this.excelStyleSearch.isLoading = false;
this.excelStyleSearch.refreshSize();
});
}

Expand Down

0 comments on commit 42ad294

Please sign in to comment.