-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(filters): name of filter input defined by the filter key rat…
…her than a separate $$name field Now a filter input's name is set to the filter key. Eg: Given: `<td filter="{'username': 'text'}"</td>` Results in the filter input: `<input name='username'/>` Previously: * Unless $$name was supplied, a filter input's name was incorrectly set to 'false' * When $$name was supplied, multiple filters defined by the *same* filter definition would share the same name BREAKING CHANGE: * $$name field on filter definitions is not supported. Previously: ```` <td filter="{'username': 'text', $$name: 'username'}"</td> ```` ... now becomes: ```` <td filter="{'username': 'text'}"</td> ```` * column.filterName has been dropped as this is no longer applicable. **Custom** filter templates will need to change. Previously: ```` <input type="text" name="{{column.filterName}}" ```` ... now becomes: ```` <input type="text" name="{{name}}" ```` * Multiple filters defined by the *same* filter definition will now render each input with a seperate name.
- Loading branch information
1 parent
79f8da6
commit 53ec5f9
Showing
5 changed files
with
8 additions
and
43 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
<input type="text" name="{{column.filterName}}" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" ng-if="filter == 'text'" class="input-filter form-control" /> | ||
<input type="text" name="{{name}}" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" ng-if="filter == 'text'" class="input-filter form-control" /> |
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