-
-
Notifications
You must be signed in to change notification settings - Fork 143
Change values
to value
in Checklist?
#133
Comments
Well, this is unfortunate. Dash components inherit from the This abstract base class implementation treats a nested component tree as a mapping between ids and components. So,
Which makes
That In the case of the
But if it wasn't supplied, then instead of throwing an
So, we have 2 options:
I think that I prefer 2. |
Ah I see, that certainly explains the obscure I'm not familiar with the design considerations going into using the abstract base class, pulling it out seems like it would be a fairly major change for this one particular issue. Changing the name of the property to Seems like a reasonable solution to me. |
values
to value
in Checklist?
Checklist needs `values` defined atm plotly/dash-core-components#133
looks like this is still outstanding? just running into this now |
Oh I should close this... we changed to Also we removed the |
Currently, not providing an initial value for the
values
attribute of dcc.Checklist results in the front end displaying "Error loading layout" and an obscure Exception on the backend which does not shed much light on the source of the problem (included at end). In order to have no checkboxes selected (and avoid this issue), you must provide an initial value ofvalues=[]
, but I think it's a reasonable assumption that the default value would have this behavior and so could be omitted.Relevant post on the forum: https://community.plot.ly/t/filling-a-checklist-through-a-callback/7435
The current exception:
The text was updated successfully, but these errors were encountered: