dash-core-components icon indicating copy to clipboard operation
dash-core-components copied to clipboard

dcc.Loading flexibility enhancements

Open alexcjohnson opened this issue 5 years ago • 2 comments

A couple of ideas came out of https://github.com/plotly/dash/issues/1441

  • type: 'text' to allow you to display arbitrary text during loading
  • Is there some way we could display certain dash components only during loading? My thought was something like a dcc.WhileLoading component, that when nested inside a dcc.Loading component, would display its contents only while loading.

alexcjohnson avatar Oct 23 '20 12:10 alexcjohnson

I would also suggest including a delay parameter for cases where loading may not last long. In such cases showing the spinner for a few milliseconds does not result in good user experience

harisbal avatar Sep 17 '21 00:09 harisbal

Hi, I am developing a large, modularized Dash app and I went into the same dead end as in #1441. The use case I have is that app consists of a "core" and a few "plugins". When the core does some calculation, I'd like to notify the plugin layouts the loading state of the core layout, so the plugin layouts can display the loading spinner. It would be great to have a way to subscribe to other components' loading state.

Jerry-Ma avatar Mar 08 '22 02:03 Jerry-Ma

closed by #2760

Coding-with-Adam avatar Mar 11 '24 16:03 Coding-with-Adam