I have a loading dialog that prompts to the user while the data is being loaded. I can easily show it when the user clicks a button, but I also need an easy way to hide it when the data is loaded.
I was thinking that I nice way to address it it would be to have a callback that listens to an event (a signal) and hides the dialog when this event is received. The last piece I need to finish my puzzle it would be to have a way to trigger a Dash event that a callback can listen to directly from my Python code.
I have been looking in the documentation and in the forums, but I haven’t found any way to trigger this kind of events.
As a workaround, I could use a hidden div and use it as a trigger for hiding the dialog. But the other way looks like a more convenient way to me; moreover, I think the potential of Dash could be enlarger provided with this capability.