Hi,
I have created a shinydashboard that will render one URL when a specific value is placed in for the textInput.
ie
Input text XYZ - Output renders a link to a unique URL
I have created functionality for one text input type but how do I add multiple/more text inputs and an associated URL for each one.
So for each time the actionButton is clicked for a particular unique text it will return a unique URL.
Code below.. thanks!
library(shiny)
ui <- fluidPage(
titlePanel("Show Onscreen Image"),
sidebarLayout(
sidebarPanel(
textInput("Venue", label = "Venue", value = "Office Pi", placeholder = "Venue Name"),
actionButton("showU","Show Venue")
),
mainPanel(
conditionalPanel(
condition = "input.showU > 0",
uiOutput("url")
)
)
)
)
server <- function(input,output){
observeEvent(input$showU,{
output$url <-renderUI(a(href=paste0('https://example.com), "Display Content", target="_blank"))
})
}
shinyApp(ui = ui ,server = server)
runnApp("Gu Dashboard", display.mode = "normal")