QueryBuilder Feasibility - Between/In/NotIn Operators #427
Replies: 2 comments 2 replies
-
I've actually been thinking about this for a while now. You can always use a custom There are two things holding me up: 1) it would be a breaking change and I'm reluctant to do that especially so soon after releasing v5, and 2) I'm not sure what a good default setup would be and how configurable it should be. There are a lot of questions even if we just try to tackle the "between" case. Should there be a configurable element between the two inputs? Maybe the word "and" (so the rule would read "FieldName between X and Y")? Should it be a full-blown component or just a string from the If we take it further and handle the "in" case, then we're dealing with a dynamic number of inputs and not just a fixed set of two. Same questions about a string or component separator (this one should probably default to ","), but we would also need to think about new components for managing the addition and removal of inputs. There's not really a good, subtle way to represent a "delete this input" mechanism using native HTML form elements, so we might have to style something which I don't want to do (this library purposefully has minimal default styling). All that said, maybe the "in" case can be ignored for now. But if I do add double-input default behavior for "between" I want to do it the right way. |
Beta Was this translation helpful? Give feedback.
-
When using the between operator, does QueryBuilder allow displaying 2 textboxes where User can input any value rather than using a comma separated single input textbox ?
Example:
Right now, it just shows one textbox and expects the User to put comma separated values
Beta Was this translation helpful? Give feedback.
All reactions