I have a shiny app with a tabsetpanel which tabs are also subdivided in 2 tabs, and I wish to show a simple busyIndicator (default loading image) when shiny is busy loading data in one of the subtabs.
simplified code piece:
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")
I have used this feature before but this time it is not showing and I don't know why. Has anything been changed? I don't see any needed shinySky update. Thank you!
答案 0 :(得分: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)