Open ColinFay opened 3 years ago
I solved this issue with the showModal function, native of shiny. There is no need for using shinyBS now.
#Add this to the UI script:
actionButton("some_button", "Settings")
# Add this to the server script:
observeEvent(input$some_button, {
shiny::showModal(
shiny::modalDialog(
size = "l",
p("something")
)
)
})
Because of the way
{shinyBS}
adds its resources to{shiny}
, it's impossible to build a package that wraps one of{shinyBS}
functions.https://github.com/ebailey78/shinyBS/blob/shinyBS3/R/misc.R#L1
For example, with the following dummy package : https://github.com/ColinFay/gloup
the tooltip won't show because
{shinyBS}
is not attached to the search path so theaddResourcePath()
is never called.I would suggest using
.onLoad
instead, or switching for a resource attachment at the function level.Thanks, Colin