-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for breaking change
- Loading branch information
1 parent
65a2a11
commit 7cab5c5
Showing
7 changed files
with
99 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
docs/content-services/components/search-header.component.md
This file was deleted.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
Title: Upgrading from ADF v4.0 to v4.1 | ||
--- | ||
|
||
# Upgrading from ADF v4.0 to v4.1 | ||
|
||
This guide explains how to upgrade your ADF v4.0 project to work with v4.1. | ||
|
||
Do not skip this task, if you want your application to be updated to a most recent version of ADF. | ||
Upgrades of multiple versions of ADF cannot be done in one step only, but should follow the chain of sequential updates. | ||
|
||
**Note:** the steps described below might involve making changes | ||
to your code. If you are working with a versioning system then you should | ||
commit any changes you are currently working on. If you aren't using versioning | ||
then be sure to make a backup copy of your project before going ahead with the | ||
upgrade. | ||
|
||
## Header Filters for Document List Components | ||
|
||
We released a new feature called Header Filters in ADF 4.0. It would allow users to filter the content of a folder by its columns properties. While this feature was working we noticed it was hard to implement. That is way we came up with a new way of enabling this feature. | ||
|
||
You will need to update your code to overcome this breaking change. | ||
|
||
ADF 4.0 implementation | ||
```html | ||
<adf-document-list | ||
currentFolderId="-my-"> | ||
<adf-custom-header-filter-template *ngIf="enableCustomHeaderFilter"> | ||
<ng-template let-col> | ||
<adf-search-header [col]="col" | ||
[value]="paramValues" | ||
[currentFolderNodeId]="currentFolderId" | ||
[sorting]="filterSorting" | ||
[maxItems]="pagination.maxItems" | ||
[skipCount]="pagination.skipCount" | ||
(update)="onFilterUpdate($event)" | ||
(clear)="onAllFilterCleared()" | ||
(selection)="onFilterSelected($event)"> | ||
</adf-search-header> | ||
</ng-template> | ||
</adf-custom-header-filter-template> | ||
</adf-document-list> | ||
``` | ||
ADF 4.1 implementation | ||
```html | ||
<adf-document-list | ||
currentFolderId="-my-" | ||
[headerFilters]="true"> | ||
</adf-document-list> | ||
``` | ||
|
||
This is all you'll need to set it up in your app. Alternatively, you can also pass an initial value to the filters and listen to filter selection changes. | ||
|
||
```html | ||
<adf-document-list | ||
currentFolderId="-my-" | ||
[headerFilters]="true" | ||
[filterValue]="paramValues" | ||
(filterSelection)="onFilterSelected($event)"> | ||
</adf-document-list> | ||
``` | ||
Notice that for this feature in ADF 4.0 to work you also needed to overwrite the `SearchFilterQueryBuilderService` with `SEARCH_QUERY_SERVICE_TOKEN` at an app level to make it work. That is no longer the case with the new version. The component will handle everything for you. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters