【发布时间】:2019-09-07 09:14:24
【问题描述】:
我想通过单击valueBox 在弹出窗口中显示数据表。 valueBox 本身应该作为actionButton 工作。
当我点击valueBox 时,它应该会在弹出窗口中呈现一个表格,如下图所示。
任何人都可以帮助解决此代码吗?
我的代码:
library(shiny)
library(shinydashboard)
data <- iris
ui <- dashboardPage(
dashboardHeader(title = "Telemedicine HP"),
dashboardSidebar(),
dashboardBody(
fluidRow(
valueBox( 60, subtitle = tags$p("Attended", style = "font-size: 200%;"),
icon = icon("trademark"), color = "purple", width = 4,
href = NULL))))
server <- function(input,output){
}
shinyApp(ui, server)
【问题讨论】:
标签: r shiny shinydashboard shinyjs shinybs