我的闪亮应用程序中有一个框,其中有一个按钮包含在闪亮的仪表板框中,如下所示:
shiny::fluidRow(
shinydashboard::box(title = "Intro Page", "Some description...",
shiny::actionButton(inputId='ab1', label="Learn More", icon = icon("th"))
)
)
我想在按钮中包含一个网络链接,这样当我单击它时,它应该在新选项卡中打开相应的网页。
我知道我可以这样做:
# this does not create a submit button though, it just creates a link.
tags$div(class = "submit",
tags$a(href = "www.google.com",
"Learn More",
target="_blank")
)
但是有了 actionButton,有一个不错的按钮,我可以给它添加一个看起来更美观的图标。
如何在闪亮中添加指向 actionButton 的链接?