Closed egonik-unlp closed 2 years ago
Can you check if the PlutoUI.confirm
function is what you need?
Take a look here: https://juliapluto.github.io/sample-notebook-previews/PlutoUI.jl.html
It really helps! I see only two problems with that particular implementation:
Thanks for your answer!
Hey all, happy new year!
confirm
(I just took a few liberties with the mixing and matching of markdown and html + libraries used):using PlutoUI
using MarkdownLiteral: @mdx
@bind speeds confirm(
PlutoUI.combine() do Child
@mdx("""
### Wind speeds
<ul>
$([
@mdx("<li>$(name): $(Child(name, Slider(1:100)))")
for name in ["North", "East", "South", "West"]
])
</ul>
""")
end
)
speeds
Let's discuss 1. in a new issue! https://github.com/JuliaPluto/PlutoUI.jl/issues/183
I think the best answer to the original question is a debounce, see #69 , #105 , https://lodash.com/docs/4.17.15#debounce and https://css-tricks.com/debouncing-throttling-explained-examples/ for more info
Let's close this in favour of #69, in addition to the helpful answers above :)
Thank you all very much!
Is it possible to make sliders somehow pass on the value once the slider stops moving? I have somewhat heavy computations downstream of the slider, and would like to be able to only make them once the slider stops moving.
thanks!