Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow HTML tags inside popover() #375

Open
lgnbhl opened this issue Apr 26, 2024 · 0 comments
Open

allow HTML tags inside popover() #375

lgnbhl opened this issue Apr 26, 2024 · 0 comments

Comments

@lgnbhl
Copy link

lgnbhl commented Apr 26, 2024

Is it possible to add html tags inside popover()?

Reproducible example

library(shiny)
library(bs4Dash)

shinyApp(
  ui = dashboardPage(
    help = TRUE,
    header = dashboardHeader(),
    sidebar = dashboardSidebar(),
    controlbar = dashboardControlbar(),
    footer = dashboardFooter(),
    title = "Popover UI",
    body = dashboardBody(
      popover(
        actionButton("goButton", "Click me to see the popover!"),
        title = "My popover",
        placement = "right",
        # html = TRUE # POSSIBLE ARGUMENT TO ADD
        content = "Lorem <a target=_blank href='https://github.com/RinteRface'>ipsum</a>."
      )
    )
  ),
  server = function(input, output) {}
)

Maybe an argument could be added in popover(), such as html = TRUE, or something similar (as I saw you implemented it for tooltips in ShinyWidgets: https://rdrr.io/cran/shinyWidgets/man/tooltipOptions.html).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant