dash
dash copied to clipboard
[Feature Request] Make `dcc.Loading` toggle-able attribute for enabled/disabled
I have created an application where various dcc.Store
elements are used to hold user-imported hash tables for images of varying sizes. These images can then be blended together and viewed in a dcc.Graph
.
Based on the size and number of images, I would like to be able to wrap these store elements in dcc.Loading
components whose visibility/functionality is toggle-able i.e. if the user wishes, he/she can either enable or disable the loading visibility for the stores using a Dash toggle switch. Right now, I don't see an option for this because there is no visibility
or enabled
attribute for the Loading component. The result is that the visibility for the stores must be set when the app is executed but cannot be dynamically changed within the session. It would be very beneficial to have an attribute for enabled or visible, similar to how some other dash components have, in order to dynamically toggle the visibility of loadings within the app on the fly.
great idea, @matt-sd-watson, thank you. Would you be interested in creating a pull request for this feature?
This would be a hugely beneficial feature for our project. In React projects this is super easy, especially with TanQuery 'isLoading' props being available.
hi @JamesKunstle . It doesn't look like @matt-sd-watson was able to make the PR. Is this something you would like to take a jab at?
Yeah @Coding-with-Adam I can give it an effort. Would also love some help triaging #2725 . It's more complicated than this one.
@JamesKunstle I'm about to do a PR to add some features to dcc.Loading
Would you like to collaborate on this project?
@AnnMarieW Yeah I would love that! I started reading the dash-renderer code and the dcc components code to prepare to make an intelligent PR. @Coding-with-Adam is sharing some resources with me as well, but I would love to work with you!
Great! I saw you post on the forum recently - I'll send you a PM there
Closed by #2760