Hello,
I’m trying to disable a RadioItems component in my code but there is no ‘disabled’ option in it
my code (simplified) :
dcc.RadioItems(
['New York City', 'Montréal', 'San Francisco'],
['New York City', 'Montréal'],
inline = True,
disabled = False,
id="radio-item-defaut"
)
@app.callback(
Output('radio-item-defaut', 'disabled'),
Input('radio-item-defaut', 'value')
def theFunction(param):
var_disable = True
return var_disable
And I have this error in my shell
TypeError: The `dcc.RadioItems` component (version 2.4.1) with the ID "radio-item-defaut" received an unexpected keyword argument: `disabled`
Allowed arguments: className, id, inline, inputClassName, inputStyle, labelClassName, labelStyle, loading_state, options, persisted_props, persistence, persistence_type, style, value
So do you have an idea to resolve this problem ?