Allow to set a custom Loading react component
Closed this issue · 3 comments
In our organization, we want to use a custom Loading react component. I've forked this repo and added our own component, but I guess it would be better if anyone could have the option to import an external react component here, instead of maintaining a forked version.
This way we could even share different loading components accross all the Dash and React community.
I've forked this repo and added our own component
Note that it should be possible to use the main branch and add an external stylesheet that targets _dash-loading-callback
, as in the discussion here: https://community.plot.ly/t/mega-dash-loading-states/5687
Of course, in that scenario you are limited in the complexity of the loading component (you would have to use content :after
selector).
it would be better if anyone could have the option to import an external react component here, instead of maintaining a forked version
Yeah! I would like to see a few things here:
1 - Ability to render a standard dash component (python components)
2 - Ability to target loading states of individual components, e.g. show an overlay over just the graphs or disable in the input components
Note that it should be possible to use the main branch and add an external stylesheet that targets _dash-loading-callback, as in the discussion here: https://community.plot.ly/t/mega-dash-loading-states/5687
Of course, in that scenario you are limited in the complexity of the loading component (you would have to use content :after selector).
That limitation is too much for our interests as we wanted to have our own HTML and JS behaviour for this.
There is a new master issue for this topic here: plotly/dash#267