-
Notifications
You must be signed in to change notification settings - Fork 15
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
Using decimal step sizes in range #137
Comments
@PGimenez Does Quasar support it? If it does, then we can do it too... |
Yes, quasar does support it - so we can add it. |
Why do you want RangeData to contain steps? mutable struct RangeData{QRangeType}
min::QRangeType
max::QRangeType
end That does work. |
If you want to coerce the result to the step size you would need RangeData to contain upper bound, lower bound, step and lower range and upper range., e.g. struct RangeData{QRangeType}
min::QRangeType
max::QRangeType
step::QRangeType
range_min::QRangeType
range_max::QRangeType
end Then you can parse the result and round to the nearest step with a Stipple.convertvalue() routine. |
Would be nice to have this fixed before the next release... |
It seems it is not possible to have decimal range step size. Here's a MWE with what I've tried:
This is the HTML that's generated:
The
RangeData
type does not directly accept floats, so you have to pass aUnitRange
to it. However, the range does not work the browser and the console shows an error:On the other hand the
q-range
bound to theQRange
object does nothing, the handler is not triggered.The text was updated successfully, but these errors were encountered: