plotly / dash-daq

Control components for Dash
MIT License
141 stars 40 forks source link

Knob indicator doesn't adjust when its `value` prop is modified though a callback #11

Closed Bachibouzouk closed 3 years ago

Bachibouzouk commented 6 years ago

The title should be explicit enough, here are the callback and the visuals

@app.callback(
    Output('knob', 'value'),
    [],
    [],
    [
        Event('radio-choice', 'change')
    ]
)
def knob_reset():
    """reset the knob to 0 when the radio item is toggled"""
    return 0

2017-07-09_knob_value_norm

2017-07-09_knob_value_err

Karan-S-Mittal commented 3 years ago

here's a preview. the knob's value is being set to a certain value with change in boolean switch.

https://user-images.githubusercontent.com/41485085/139593594-32198cf1-6d6f-44c1-9d56-fe7c156ee46f.mov