zebzhao / Angular-QueryBuilder

A modernized Angular 4+ query builder based on jquery QueryBuilder
MIT License
292 stars 222 forks source link

How to add "Not" as checkbox along with And /or radio buttons #158

Open meenaxiraj opened 4 years ago

meenaxiraj commented 4 years ago

When we want to negate a query then i want "NOT" operator somewhat like we have And OR. Please suggest how to add it and get this NOT selection per Ruleset dynamically in query.

eisnerw commented 3 years ago

I would suggest adding a "not" boolean attribute in the ruleset which would allow either "not (x OR y)" or "not (x AND y)". A NOT checkbox could be added to the AND/OR radio buttons to change the value of the attribute.