-
Notifications
You must be signed in to change notification settings - Fork 65
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
Percentages in math ops for number fields #188
Comments
Hey @ellthompson - should I transfer this issue to the PCUI repo, or do you think this request should remain Editor-specific? |
This should be moved to PCUI as it's a feature request for the NumericInput component. We'll need to update the logic here: pcui/src/components/NumericInput/index.ts Line 199 in ad64183
|
So my attempt to implement this was rejected and reverted. Can we be clear about the exact functionality of what's desired here, please? Is it purely:
Questions:
|
The addition/subtraction looks correct, yes. |
Good, good. I think personally, I would go with a bare minimum in this PR. That is I'd just add plus and minus operands, as you described them. Its actually, the operation I wanted originally in this issue. I don't really see a value in mul/div, but perhaps someone is used to use those in some other apps. I'd leave those until a feature request is made, though. |
The current feature of doing math operations, like adding number values in the number fields is super helpful. If possible, please enable adding percentages as well. For example, current value is 123. Allow the use of 123+10%, which would add 10 percent of the current value to the current value.
The text was updated successfully, but these errors were encountered: