Hi,
What is wrong with my clientside_callback :
from dash import Dash,html
import dash_bootstrap_components as dbc
from dash.dependencies import Input,Output,State
app=Dash()
app.layout=html.Div(
children=[
dbc.Input(id = "input"),
dbc.Checkbox(id = "check")
]
)
# app.clientside_callback(
# """
# function disabling(force):{
# return force;
# }
# """,
# Output("input", "disabled"),
# Input("check", "value"),
# )
@app.callback(
Output("input", "disabled"),
Input("check", "value"),
)
def disabling(check):
return check
if __name__ == '__main__':
app.run_server(debug=True)
Simple layout : an input and a checkbox. If you check the box, the input is disabled.
Works fine with @app.callback version. But when I try with the clientside_callback I get this :