Is there a way for the text (set via 'value=') to disappear when clicking on a textbox created via textInput? I think the term for this is placeholder.
For example, below I would like the text to go away once I click on the textbox:
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
textInput("mytext", "Enter Label:", value="This should go away on click")
),
mainPanel(textOutput("showtext"))
)
)
server <- function(input, output) {
output$showtext <- renderText(input$mytext)
}
shinyApp(ui = ui, server = server)
So, I'm looking for a behavior similar to what you get with selectInput, where once a selection is made the text in the textbox disappears.
Thanks,