thereIsAPossiblePathsModal <- function(input, output, session, street_names) {
shiny::observe({
shiny::updateSelectInput(session = session, inputId = "possiblePathsId", choices = "")
})
shiny::showModal(
shiny::modalDialog(title = "Possible Paths",
footer = shiny::tagList(
shiny::actionButton(inputId = "showPlot", label = "Plot Data"),
shiny::modalButton("Close")
), size = "l", easyClose = FALSE,
shiny::fluidRow(
shiny::column(width = 12,
shiny::column(width = 12,
shiny::selectInput(inputId = "plotPossiblePathId", label = "Possible Paths:", choices = street_names, width = "100%")
)
)
)
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.