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
The documentation of shinyBS states that shinyBS should be attached after loading shiny in server.R/ui.R. However, for packages providing a shinyApp utilizing shinyBS it would be beneficial if attaching shinyBS wasn't a requirement. Indeed, when shinyBS it not attached, it seems that everything works fine except for updating bsCollapes.
Here's an example based on bsExample("Collapses"). Note that the collapses don't change when shinyBS is not loaded via library().
ui.R
#library(shiny)
#library(shinyBS)
shiny::fluidPage(
shiny::sidebarLayout(
shiny::sidebarPanel(shiny::HTML("This button will open Panel 1 using <code>updateCollapse</code>."),
shiny::actionButton("p1Button", "Push Me!"),
shiny::selectInput("styleSelect", "Select style for Panel 1",
c("default", "primary", "danger", "warning", "info", "success"))
),
shiny::mainPanel(
shinyBS::bsCollapse(id = "collapseExample", open = "Panel 2",
shinyBS::bsCollapsePanel("Panel 1", "This is a panel with just text ",
"and has the default style. You can change the style in ",
"the sidebar.", style = "info"),
shinyBS::bsCollapsePanel("Panel 2", "This panel has a generic plot. ",
"and a 'success' style.", shiny::plotOutput("genericPlot"), style = "success")
)
)
)
)
The documentation of shinyBS states that shinyBS should be attached after loading shiny in server.R/ui.R. However, for packages providing a shinyApp utilizing shinyBS it would be beneficial if attaching shinyBS wasn't a requirement. Indeed, when shinyBS it not attached, it seems that everything works fine except for updating bsCollapes.
Here's an example based on bsExample("Collapses"). Note that the collapses don't change when shinyBS is not loaded via library().
ui.R
server.R
The text was updated successfully, but these errors were encountered: