Skip to content

Commit

Permalink
Custom filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Hector Romero committed Oct 2, 2016
1 parent a9ac737 commit b7929cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/au-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ export class AureliaTableCustomAttribute {
return true;
}

if (typeof filter.custom === 'function') {
return filter.custom(filter.value, item);
}

for (let key of filter.keys) {
let value = this.getPropertyValue(item, key);

Expand Down

0 comments on commit b7929cf

Please sign in to comment.