【问题标题】:busyIndicator not showing in R shiny AppbusyIndi​​cator 未在 R 闪亮的应用程序中显示
【发布时间】:2019-09-30 15:44:52
【问题描述】:

我有一个带有 tabsetpanel 的闪亮应用程序,其中标签也细分为 2 个标签,当闪亮正忙于在其中一个子标签中加载数据时,我希望显示一个简单的 busyIndi​​cator(默认加载图像)。

简化的代码片段:

tabsetPanel(id = "tabs",
    tabPanel(value = 3, ("Tab3"),
           tabsetPanel(id = "subPanel3", position = "left",
                tabPanel(value = 9, ("View"), icon = icon("eye-open", lib = "glyphicon"),
                   busyIndicator(text = "Loading, please wait...", wait = 400), (...)
                   DT::dataTableOutput("lc")

我以前使用过这个功能,但这次没有显示,我不知道为什么。有什么改变吗?我没有看到任何需要的 shinySky 更新。 谢谢!

【问题讨论】:

    标签: r shiny shinysky


    【解决方案1】:

    我也遇到过类似的问题——虽然我不确定我的解决方案能否解决您的问题。另外,我参加聚会可能为时已晚,但它可能会帮助其他人。

    在我的例子中,busyIndicator 隐藏在其他输出(表格、绘图等)之后。通过将busyIndicator 行移动到dataTableOutput 行下方,它变得可见。即交换tabPanel中的两行:

    tabsetPanel(id = "tabs",
        tabPanel(value = 3, ("Tab3"),
               tabsetPanel(id = "subPanel3", position = "left",
                    tabPanel(value = 9, ("View"), icon = icon("eye-open", lib = "glyphicon"),
                       DT::dataTableOutput("lc")
                       busyIndicator(text = "Loading, please wait...", wait = 400)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-09
      • 1970-01-01
      • 2011-06-25
      • 2013-04-19
      • 2018-07-03
      • 1970-01-01
      • 2018-07-14
      • 2012-04-30
      相关资源
      最近更新 更多