Skip to content

Commit 09437a8

Browse files
committed
inline filter configuration described in the readme
1 parent 779c1df commit 09437a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ A module providing an [AngularJS](http://angularjs.org/) filter which can be use
1616

1717
## How it works?
1818

19-
1. It's is configurable: you should configure which properties of your nodes should checked.
19+
1. It's is configurable:
20+
- you may provide default properties of your nodes that should matched against provided pattern:
2021

2122
```
2223
angular.module('myApp')
@@ -25,6 +26,12 @@ angular.module('myApp')
2526
});
2627
```
2728

29+
- or you may pass property list as an optional 3rd argument:
30+
31+
```
32+
$filter('uiTreeFilter')(nodeObject, pattern, ['title', 'description', 'username'])
33+
```
34+
2835
2. It matches the whole path
2936
If a sub-node matches all its ancestors up to the tree root match as well:
3037

0 commit comments

Comments
 (0)