We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the example adapted from the widgets example here:
function rng_slider(orientation, val_range::AbstractRange, default_vals::Vector) range_slider = RangeSlider(val_range; value=default_vals) range_slider.tooltips[] = true range_slider.ticks[] = Dict( "mode" => "range", "density" => 1 ) range_slider.orientation[] = orientation return range_slider end
The below will work (note the integers used as the default values)
test_slider = rng_slider(JSServe.WidgetsBase.horizontal, 0.0:0.5:10.0, [5, 8])
But using floats to specify the default range will not work:
test_slider = rng_slider(JSServe.WidgetsBase.horizontal, 0.0:0.5:10.0, [5.0, 8.0])
The text was updated successfully, but these errors were encountered:
Just to add - this is especially a problem if the slider is intended to range between, say, 0 and 1.
Sorry, something went wrong.
No branches or pull requests
Consider the example adapted from the widgets example here:
The below will work
(note the integers used as the default values)
But using floats to specify the default range will not work:
The text was updated successfully, but these errors were encountered: