useOverlay | R Documentation |
overshiny
will set up automatically if you have an overlayPlotOutput()
anywhere in your Shiny UI, which you probably do if you are using this
package. But if you don't, you can set up overshiny
by manually putting
useOverlay()
somewhere in your Shiny app's UI.
useOverlay()
This also calls shinyjs::useShinyjs()
, as overshiny
depends on shinyjs
.
Returns an HTML dependency that sets up your Shiny app to use
overshiny
.
overlayServer()
, for a complete example.
ui <- shiny::fluidPage(
useOverlay() # only needed if no overlayPlotOutput() elements below
# further UI elements here . . .
)
server <- function(input, output) {
# server code here . . .
}
if (interactive()) {
shiny::shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.