thecoder
thecoder

Reputation: 247

Clickable hyperlink Shiny R

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

Answers (1)

Oleole
Oleole

Reputation: 411

Putting tags$a should work.

tabItem("icratio",
    fluidRow(
      tags$a(img(src="image.png"), href="https://google.com")
    )
)

Upvotes: 2

Related Questions