-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Custom OR logic? #5
Comments
Yes, adding the ability to have AND or OR would make it way more flexible but it would also need parenthesis. This is a more complex UX pattern. |
My solution (with php): structured-filter.js var evoLang={sYada:'Multi'}
//--
evoAPI={sYada:'yada'}
//--
default:
EvoUI.inputOption(evoAPI.sYada, evoLang.sYada); custom.php
Usage : Select "multi" options and type values with comma. |
+1 for operators between conditions. |
+1 for operators |
👍 |
👍 |
👍 + for operators |
I think this is a strong library as-is - without the complexity of boolean logic and parenthesis. This keeps the implementation and UX much simpler, while meeting the needs for many use cases. See https://querybuilder.js.org/ if you need to handle more complex use cases. |
It would be awesome if I could do filtering like this:
{
{Username contains 'asdf' AND Lastname contains 'foo'}
OR
{Username startswith 'A' and age < 13}
}
This way a lot more flexible queries could be built
The text was updated successfully, but these errors were encountered: