You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dash component generation doesn't work for hyphenated props #2843
When generating new components using the dash typescript boilerplate, there is an issue with props containing a hyphen. E.g., if I try to generate bindings for a component, which has the "aria-expanded" prop, the generated Python class has "area-expanded" in its parameters, which throws an invalid syntax error, since python variables can't have hyphens.
This topic has been around a long time. Just thought I'd consolidate a couple issues and forum posts that might be helpful - just in case it gets on the roadmap or sponsored.
changed the title [-][BUG] The dash component generation doesn't work for hyphenated props[/-][+]dash component generation doesn't work for hyphenated props[/+]on Aug 13, 2024
Activity
AnnMarieW commentedon May 4, 2024
This topic has been around a long time. Just thought I'd consolidate a couple issues and forum posts that might be helpful - just in case it gets on the roadmap or sponsored.
https://community.plotly.com/t/can-data-attributes-be-created-in-dash/7222/2
This PR added a way to add
data-*andaria-*props to dash html componentsSupport for wildcard attributes, implement data-* attribute #237
Allow wildcard props - or arbitrary props - on all components #1021
[-][BUG] The dash component generation doesn't work for hyphenated props[/-][+]dash component generation doesn't work for hyphenated props[/+]