RinteRface / bs4Dash

Bootstrap 4 shinydashboard using AdminLTE3
https://bs4dash.rinterface.com
Other
437 stars 81 forks source link

`popover()` doesn't work #374

Closed lgnbhl closed 5 months ago

lgnbhl commented 5 months ago

Thanks for this great package.

The popover() function doesn't seem to work. I ran the example from the documentation but nothing is showing when clicking on the action button:

# code from: https://rinterface.github.io/bs4Dash/reference/popover.html
library(shiny)
library(bs4Dash)

shinyApp(
  ui = dashboardPage(
    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",
        content = "Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
      )
    )
  ),
  server = function(input, output) {}
)

Do you have the same issue?

DivadNojnarg commented 5 months ago

Thanks. Sorry this is a documentation issue. If you pass help=TRUE in dashboardPage, popover will show: https://rinterface.github.io/bs4Dash/reference/dashboardPage.html. The doc hasn’t been updated here and still refer to the old way of doing it.

lgnbhl commented 5 months ago

Thanks a lot for your quick answer. I see the related documentation is already updated in the GitHub repo. So I close this issue :).