在破折号下拉列表中选择一个值后,在屏幕上显示 "Loading..." 或 "Fetching.." 一会儿

Show "Loading..." or "Fetching.." on screen for a while after selecting a value in dash dropdown

我很想知道在单击短划线下拉列表中的值后,我是否可以在屏幕上打印类似“Loading..”的内容一段时间。

示例下拉列表:https://dashr.plotly.com/dash-core-components/dropdown 来自 dash 网站

我只想让用户知道正在为他从下拉列表中选择的选项提取结果,然后显示结果。

dash 核心有一个加载组件 :

The Loading component can be used to wrap components that you want to display a spinner for, if they take too long to load. It does this by checking if any of the Loading components' children have a loading_state prop set where is_loading is true. If true, it will display one of the built-in CSS spinners.

您将在 documentation 页面中找到一些示例。