Search code examples
pythoncheckboxcallbackplotly-dashrangeslider

add multiple components to html.Div in loop


I am trying to show some rangesliders depening on the boxes I check in the sliders. The amount of boxes is variable (in the current code some dummy variables) so I think I'll have to add the rangeslider in some sort of callback loop. The way I am doing it now only shows one rangeslider. See the code below.

code pt1

code pt2

Hope you guys can help me out.


Solution

  • I managed by adding them to a list and returning that list: lst image

    If someone has a possible better solution I am glad to hear.