mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Merge branch 'main' into rc-v1.9.0
This commit is contained in:
10
NEWS.md
10
NEWS.md
@@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
## New busy indication feature
|
## New busy indication feature
|
||||||
|
|
||||||
Shiny now includes busy indication by default, which more specifically means:
|
Add the new `useBusyIndicators()` function to any UI definition to:
|
||||||
1. Calculating/recalculating outputs now have a spinner overlay.
|
1. Add a spinner overlay on calculating/recalculating outputs.
|
||||||
2. When no outputs are calculating, but Shiny is busy calculating something (e.g., a download, side-effect, etc), a page-level pulsing banner is shown.
|
2. Show a page-level pulsing banner when Shiny is busy calculating something (e.g., a download, side-effect, etc), but no calculating/recalculating outputs are visible.
|
||||||
|
|
||||||
If either 1 or 2 leads to undesirable behavior in your app, you can disable them entirely with `useBusyIndicators(spinners = FALSE, pulse = FALSE)`. In addition, various properties of the spinners and pulse can be customized with `busyIndicatorOptions()`. For more details, see `?busyIndicatorOptions`. (#4040, #4104)
|
In a future version of Shiny, busy indication will be enabled by default, so we encourage you to try it out now, provide feedback, and report any issues.
|
||||||
|
|
||||||
|
In addition, various properties of the spinners and pulse can be customized with `busyIndicatorOptions()`. For more details, see `?busyIndicatorOptions`. (#4040, #4104)
|
||||||
|
|
||||||
## New features and improvements
|
## New features and improvements
|
||||||
|
|
||||||
|
|||||||
@@ -288,6 +288,7 @@ busyIndicatorDependency <- function() {
|
|||||||
src = "www/shared/busy-indicators",
|
src = "www/shared/busy-indicators",
|
||||||
package = "shiny",
|
package = "shiny",
|
||||||
stylesheet = "busy-indicators.css",
|
stylesheet = "busy-indicators.css",
|
||||||
head = as.character(useBusyIndicators())
|
# TODO-future: In next release make spinners and pulse opt-out
|
||||||
|
# head = as.character(useBusyIndicators())
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user