Use renderUI to call a dashboardPage in shiny

≡放荡痞女 提交于 2019-12-11 04:06:28

问题


In http://shiny.rstudio.com/articles/dynamic-ui.html, it shows how to use renderUI to call UI function in server; but it doesn't work for dashboardpage. I guess the problem stays at the class of dashboardpage while renderUI generates a different class of object??? could this problem be fixed?

I used these codes to test renderUI on dashboardpage:

shinyApp(
  ui<-(uiOutput("x",replace=T)),
server<-function(input,output){
  output$x<-
    renderUI(dashboardPage(
    dashboardHeader(),
    dashboardSidebar(),
    dashboardBody()
  ))
})

来源:https://stackoverflow.com/questions/46170973/use-renderui-to-call-a-dashboardpage-in-shiny

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!