{"action":"created","issue":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/136","labels_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/136/comments","events_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/136/events","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/136","id":89451686,"number":136,"title":"Dynamic filters","user":{"login":"phazei","id":431395,"avatar_url":"https://avatars.githubusercontent.com/u/431395?v=3","gravatar_id":"","url":"https://api.github.com/users/phazei","html_url":"https://github.com/phazei","followers_url":"https://api.github.com/users/phazei/followers","following_url":"https://api.github.com/users/phazei/following{/other_user}","gists_url":"https://api.github.com/users/phazei/gists{/gist_id}","starred_url":"https://api.github.com/users/phazei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phazei/subscriptions","organizations_url":"https://api.github.com/users/phazei/orgs","repos_url":"https://api.github.com/users/phazei/repos","events_url":"https://api.github.com/users/phazei/events{/privacy}","received_events_url":"https://api.github.com/users/phazei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-19T03:02:55Z","updated_at":"2015-08-08T09:52:41Z","closed_at":null,"body":"Is it possible to add dynamic filters?\r\n\r\nI'm creating a system where there are a number of pre-existing fixed filters as this builder does, but there are also many that will be dynamic; far far too many to create initially (hundreds to thousands)\r\n\r\nFor the dynamic options, an \"add filter\" would need to be selected, which would then popup an auto-complete type box allows them to search for a rule from the server, once selected, it would return the name/id of the rule, as well as the operators and values, and from those, the plugin would work as expected.\r\n\r\nOnce the plugin has been created, can I add an additional filter?  And is there a hook so when it runs \"setRules\", if it were a dynamically added rule that doesn't exist in the pre-existing filter list, I could have it grab that rule from the server so it can properly set the rule?\r\n\r\nI believe that all should be able to be done with setFilter/getFilter hooks that are triggered for certain rules.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/comments/128945045","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/136#issuecomment-128945045","issue_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/136","id":128945045,"user":{"login":"mistic100","id":41597,"avatar_url":"https://avatars.githubusercontent.com/u/41597?v=3","gravatar_id":"","url":"https://api.github.com/users/mistic100","html_url":"https://github.com/mistic100","followers_url":"https://api.github.com/users/mistic100/followers","following_url":"https://api.github.com/users/mistic100/following{/other_user}","gists_url":"https://api.github.com/users/mistic100/gists{/gist_id}","starred_url":"https://api.github.com/users/mistic100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistic100/subscriptions","organizations_url":"https://api.github.com/users/mistic100/orgs","repos_url":"https://api.github.com/users/mistic100/repos","events_url":"https://api.github.com/users/mistic100/events{/privacy}","received_events_url":"https://api.github.com/users/mistic100/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T09:52:41Z","updated_at":"2015-08-08T09:52:41Z","body":"A new plugin adds methods `setFilters`, `addFilter` & `removeFilter`."}}