Reputation: 247
I've tried this code to create a clickable hyperlink in Shiny Dashboard, but the image doesn't show up for some reason (I get a question mark kind of an icon, but it's hyperlinked)
`dashboardBody(
tabItems(
tabItem("icratio",
fluidRow(
a(img(src="image.png"), href="https://google.com")
)
)
)
)`
What could be the problem?
Upvotes: 3
Views: 2849
Reputation: 411
Putting tags$a should work.
tabItem("icratio",
fluidRow(
tags$a(img(src="image.png"), href="https://google.com")
)
)
Upvotes: 2