You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: