Uh oh!
There was an error while loading. Please reload this page.
Adding drag_value to Slider - #888
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alex Johnson <johnson.alex.c@gmail.com>
@almarklein this PR is looking good! Seems like mainly it just needs a test or two added to test_sliders.py. That may be a bit tricky to get right, but seems like the test app would have a callback on both |
Uh oh!
There was an error while loading. Please reload this page.
almarklein
commented
Dec 11, 2020
I refactored the code for the I have not updated the |
almarklein
commented
Dec 11, 2020
BTW, with |
Marc-Andre-Rivet
commented
Dec 11, 2020
@alexcjohnson@almarklein I think the problem here is that the branch is out-of-date You can see in the |
alexcjohnson
commented
Dec 11, 2020
Ah, so perhaps installing dash caused it to go fetch the published dcc 1.14.1 rather than use the source in this branch, because it listed a lower version number? I'm still confused by this, because even in the build-dash step on your merge commit I see it downloading a published version of dcc So how do I know we're not using that version (other than that the test passes? Is there some way we could definitively check at the beginning of the test that the version of this repo that we're running is precisely the intended commit? Or set this up in a more robust way so this issue can't recur? |
Marc-Andre-Rivet
commented
Dec 11, 2020
@alexcjohnson Not sure about that. It's that way because we use the tarball from the previous build step -- in other repos we simply do |
almarklein
commented
Dec 11, 2020
Wow, thanks @Marc-Andre-Rivet ! |
Marc-Andre-Rivet
commented
Dec 11, 2020
@alexcjohnson I think we could simply |
🎆 Ready from my end. |
almarklein
commented
Dec 12, 2020
About documentation, I think we'd need to add an example to the docs at the dash-docs repo, right? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
alexcjohnson
left a comment
There was a problem hiding this comment.
Fantastic! 💃
Yes, the final step will be to add an example in dash-docs.
closes#107, replaces #884
This is an attempt to add a
drag_valueproperty to the Slider, such that different callbacks can be applied to the slider being dragged, and the slider being released, as proposed in #107.Disclaimer: I am not yet familiar with the codebase of this repo, so I just tried to update the new property where the
valueproperty was updated.Todo:
undefined, and I'm not sure how to initialize it to the same value asvalue.updatemodeto incorporate the new prop.RangeSlicershould be updated to use the same approach asSlicer.Script to test this: