我有一个闪亮的应用程序与tabsetpanel,其中选项卡也细分为2个选项卡,我希望显示一个简单的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")
我以前使用过这个功能,但这次没有显示,我不知道为什么。有什么变化吗?我没有看到任何必要的shinySky更新。谢谢你!
我有一个类似的问题-虽然我不确定我的解决方案将解决您的问题。而且,我可能来晚了,但它可能会帮助别人。
在我的例子中,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)