-
-
Notifications
You must be signed in to change notification settings - Fork 143
feature suggestion: Slider should have value printed next to it #255
Comments
You can do this yourself with a label and a callback if required. Agreed it would be nice to see integrated though. |
true. having a callback for every slider seems highly redundant. |
If you need it for every slider and plan to make a lot of them, you could write a function that creates the slider, slider label and callback all in one. So then you can just call your custom function to create the component group instead of dcc.Slider |
i thought the app.callback had to be present to run the app, meaning not generated dynamically with a function? |
Ideally, yes. But generating a callback within another function is fine and
can still be done on the initial load / to create the initial layout (so
it’s not dynamic in this sense).
But actual dynamic callbacks are also possible I believe, if you
“suppress_callback_exceptions” in your app config.
…On Fri, Aug 10, 2018 at 04:44, alex arsenovic ***@***.***> wrote:
i thought the app.callback had to be present to run the app, meaning not
generated dynamically with a function?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#255 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC1rRA7x71eaRlcu-Yui6NlGcGfo7GAsks5uPXIxgaJpZM4VyWcJ>
.
|
@mkhorton Have you tested that? @arsenovic Back to original question:
|
I think this is a duplicate of #324. The current status is that the value can be shown with a tooltip (see example below), and that there is a plan for a "slider companion". slider = Slider(..., tooltip={"always_visible": False, "placement": "top"}) |
the Slider should have an option to display the current value like ipywidgets sliders.
The text was updated successfully, but these errors were encountered: