From 3b0097d745c7f2c2643913b03b84921e49d013be Mon Sep 17 00:00:00 2001 From: Carson Date: Fri, 13 Dec 2024 10:49:15 -0600 Subject: [PATCH] tableOutput() now gets the spinner treatment --- R/bootstrap.R | 2 +- srcts/extras/busy-indicators/busy-indicators.scss | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/R/bootstrap.R b/R/bootstrap.R index 970b43400..23aeb05be 100644 --- a/R/bootstrap.R +++ b/R/bootstrap.R @@ -1113,7 +1113,7 @@ plotOutput <- function(outputId, width = "100%", height="400px", #' @rdname renderTable #' @export tableOutput <- function(outputId) { - div(id = outputId, class="shiny-html-output") + div(id = outputId, class="shiny-html-output shiny-table-output") } dataTableDependency <- list( diff --git a/srcts/extras/busy-indicators/busy-indicators.scss b/srcts/extras/busy-indicators/busy-indicators.scss index 9a1fea227..f431b9a6f 100644 --- a/srcts/extras/busy-indicators/busy-indicators.scss +++ b/srcts/extras/busy-indicators/busy-indicators.scss @@ -70,7 +70,7 @@ Note that, even if we could position it, we'd probably want to disable it if it has recalculating children. */ - &.shiny-html-output::after { + &.shiny-html-output:not(.shiny-table-output)::after { display: none; } } @@ -124,6 +124,9 @@ &.shiny-busy:has(.recalculating:not(.shiny-html-output))::after { display: none; } + &.shiny-busy:has(.recalculating.shiny-table-output)::after { + display: none; + } &.shiny-busy:has(#shiny-disconnected-overlay)::after { display: none; }