Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

Prompting a message asking the user to wait

Hi,
Is there anyway to prompt a “Please wait…” message somewhere in the layout so that when a user triggers an expensive callback the message appears, and when the asked thing comes up, the message disappears? I managed to implement it for the first time, playing with n_clicks>0 and the children of the div of the outcome==[ ], but that’s it. For non-limit number of times, I tried to used circular callbacks, and I get the “Error loading dependencies”. Any idea?
Thank you!

Hi @pablomarina did you take a look at the documentation on loading states? One the outputs of your expensive callback could be an html title (H6, H5) which would be invisible except when its data-dash-is-loading attribute is True (to be defined in CSS).

Thank you so much, I’ll try it!