R/createRouteModal.R

Defines functions createRouteModal

createRouteModal <- function(input, output, session, loadDataStreets) {
  shiny::showModal(
    shiny::modalDialog(title = "Create Route",
      footer = shiny::tagList(
        shiny::actionButton(inputId = "saveRoute", label = "Save Route"),
        shiny::modalButton("Cancel")
      ), size = "m", easyClose = FALSE,
      shiny::fluidRow(
        shiny::column(width = 12,
          shiny::column(width = 6,
            shiny::selectInput(inputId = "location", label = "Select Location", choices = loadDataStreets)
          ),
          shiny::column(width = 6,
            shiny::selectInput(inputId = "destination", label = "Select Destination", choices = loadDataStreets)
          )
        )
      )
    )
  )
}
adamjohndbenitez/navify documentation built on April 20, 2020, 9:51 p.m.