plotly / dash-component-boilerplate

Get started creating your own Dash components here.
266 stars 182 forks source link

Support data-dash-is-loading API #66

Open ned2 opened 5 years ago

ned2 commented 5 years ago

Would it be possible to add default support for the data-dash-is-loading data attribute through the loading_state.is_loading prop?

It's not clear from the Dash docs that this API doesn't work out of the box with arbitrary Dash components. I took quite a while working out that my lack of loading spinner for a component was due to using a Dash Bootstrap Component (facultyai/dash-bootstrap-components#165), which I have a mental model of being replaceable with Dash HTML Components.

Adding support in this boilerplate would increase the level of support for this API in other third-party components.