My question is: is not possible to create a callback function with the same value as Input and Output?
To be a little more specific I have a slider whose value I only want changed if a specific condition (press of a button) is met. Otherwise, I want it to keep it’s value. For this, I have formulated my callbacks as follows:
start counter from 0 once button is clicked
every 1 second change slider values - short demo
def on_click(btn_click, count_interval, prev_value):
# don’t do this when application is loaded for the first time
if btn_click!=None and count_interval < 81:
value = slider_vals[count_interval] return round(value, 2) else: return prev_value
The problem is am getting an “Error loading layout” message on my browser after adding the Input slider and if I don’t include this, then None is returned as the new value of the slider (if the button hasn’t been clicked)!
Any ideas about how to go about dealing with this?