From a5f5eb30473642b60ebc70158947d7961a81b983 Mon Sep 17 00:00:00 2001 From: Gianluca Chiarani <26008534+GianlucaChiarani@users.noreply.github.com> Date: Tue, 12 Apr 2022 17:26:43 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 27bcedf..36d839c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Main features: ## Example ``` $(".filters-container").AdvancedFilters({ + /* The filterable fields properties */ fields: { "date":{ "label": "Delivery Date", @@ -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": "",