Skip to content

Rule operators not supported #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chrisborecki opened this issue Aug 21, 2020 · 6 comments
Closed

Rule operators not supported #25

chrisborecki opened this issue Aug 21, 2020 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@chrisborecki
Copy link

chrisborecki commented Aug 21, 2020

Hi,

are rule operators not supported?
For example, for constructing a query: "numA > 3"

Note - these are not the And/Or group operators.

@rtucek
Copy link
Owner

rtucek commented Aug 25, 2020

The QueryBuilder doesn't come with any pre-defined/opinionated rules out of the box.
Instead, you're supposed to write and inject your own rules - so it should cover your need for numeric comparison.

Please have a look at the docs for rule configuration as well as the corresponding sample on Code Sandbox. The sample in Code Sandbox shows multiple alternative ways to inject rules as custom components.

@rtucek rtucek closed this as completed Aug 25, 2020
@mlaw93
Copy link

mlaw93 commented Sep 1, 2020

Can you please elaborate on your explanation regarding how one might go about doing as Chris asked? The docs for rules configuration and the corresponding sample do not clearly explain how one might create a component that will allow for the alternative caparison values

For example: 'equal','not equal','in','not in','is null','is not null','less','less or equal','greater','greater or equal','between','not between','contains','begins with','ends with'

@rtucek
Copy link
Owner

rtucek commented Sep 7, 2020

@mlaw93 & @chrisborecki, please see this sample on code sandbox.
I hope this is what you're looking for.

Edit Slot: Rule (advanced)

rtucek added a commit that referenced this issue Sep 7, 2020
rtucek added a commit that referenced this issue Sep 7, 2020
@jcunhafonte
Copy link

@rtucek Thank you for the answers but I believe this is still unclear.

In your example, you filter by the type of the field.
How do you achieve something similar to the screenshot?
Screenshot 2020-10-06 at 18 19 10

Thank you.

@rtucek
Copy link
Owner

rtucek commented Oct 7, 2020

This should do the trick
Edit Vegetable

@jcunhafonte
Copy link

Thank you @rtucek.

@rtucek rtucek added question Further information is requested help wanted Extra attention is needed labels Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants