You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Really helpful library! i am using it now. More implementation comes, I am wondering if querybuilder library support more complex calculation operator such as multiple, divide, plus, minus?
For example i want to implement a rule/condition where it can be:
First Value Field * Second Value Field = 2
Is it possible to realize?
Thank you!
The text was updated successfully, but these errors were encountered:
kellywang1234
changed the title
Does this library support calculation operator such as + - * / ?
Does this library support calculation operator such as + - * /
Nov 16, 2023
Thanks for the kind words! I've been considering adding a "function" value type for a while, which might cover the +/-/*// use cases as well.
In the meantime, you can do something like what I implemented in my day job which is to encode the expression in the rule value as a plain string, then parse it from the props during render and then reconstruct the string in the correct format when you call props.handleOnChange().
Really helpful library! i am using it now. More implementation comes, I am wondering if querybuilder library support more complex calculation operator such as multiple, divide, plus, minus?
For example i want to implement a rule/condition where it can be:
First Value Field * Second Value Field = 2
Is it possible to realize?
Thank you!
The text was updated successfully, but these errors were encountered: