Is there a way to directly reference a nested property of a component when using the “Running” parameter of plotly-dash? For example:
Without nested direct reference (works – but must provide the entire multi-part property):
@app.callback(Output("graph1", "children"), Input("w1_radioSelect", "value"),
running=[
Output("checkbox_selector", "options"),
[{"label": "checkbox label", "value":"value", "disabled":True}, {...Remaining Options' Key-Value Pairs...}],
[{"label": "checkbox label", "value":"value", "disabled":True}, {...Remaining Options' Key-Value Pairs...}]
]
)
With nested direct reference (doesn’t work – looking for some type of similar syntax that does…?)
@app.callback(
Output("graph1", "children"), Input("w1_radioSelect", "value"),
running=[Output("checkbox_selector", "options[0].disabled"),True, False]
)
I tried a few variations of the above with no luck.
As is probably obvious from the example, this is specifically in reference to the dcc.Checklist item. I don’t think there is any other way to disable a particular option (other than to set the “disabled” key in the corresponding options list entry to True), but someone please correct me if I’m wrong on that account. Also, as far as I can tell, there is no “disabled” parameter available for the checklist in its entirety.