Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaChiarani committed Apr 12, 2022
1 parent d13cc5d commit a5f5eb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Main features:
## Example
```
$(".filters-container").AdvancedFilters({
/* The filterable fields properties */
fields: {
"date":{
"label": "Delivery Date",
Expand All @@ -26,10 +27,13 @@ $(".filters-container").AdvancedFilters({
"label": "Email Subject"
}
},
/* The function called when the filters change */
onFilter: function(json) {
console.log(json);
},
/* The json of the predefined filters */
activeFiltersJson: '{"filters":{"and":[{"field":"date","operator":"*","value":"2022-04-12"}]},"search":"test"}',
/* The translated strings object */
translations: {
"contains": "",
"not contains": "",
Expand Down

0 comments on commit a5f5eb3

Please sign in to comment.