ui.busy_indicators.use
=True, pulse=True, fade=True) ui.busy_indicators.use(spinners
Enable/disable busy indication
Busy indicators provide a visual cue to users when the server is busy calculating outputs or otherwise performing tasks (e.g., producing downloads). When enabled (they are by default), a spinner is shown on each calculating/recalculating output, and a pulsing banner is shown at the top of the page when the app is otherwise busy. To disable, include the result of this function in anywhere in the app's UI.
Parameters
spinners : bool = True
-
Whether to show a spinner on each calculating/recalculating output.
pulse : bool = True
-
Whether to show a pulsing banner at the top of the page when the app is busy.
fade : bool = True
-
Whether to fade recalculating outputs. A value of
False
is equivalent toshiny.ui.busy_indicators.options(fade_opacity=1)
.
Note
When both spinners
and pulse
are set to True
, the pulse is disabled when spinner(s) are active. When both spinners
and pulse
are set to False
, no busy indication is shown (other than the gray-ing out of recalculating outputs).
See Also
options
for customizing busy indicators.