忙碌指示器在R Shiny应用中没有显示。

3

我的shiny应用程序有一个tabsetpanel,其中的选项卡也被分为两个选项卡,我希望在其中一个子选项卡中加载数据时显示一个简单的busyIndicator(默认加载图像)。

简化代码片段:

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")

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

1个回答

0

我曾经遇到过类似的问题,但我不确定我的解决方案是否能解决你的问题。而且,我可能来晚了,但它可能会帮助其他人。

在我的情况下,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)

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接