
Last chance! 50% off unlimited learning
Sale ends in
Create text field with add-on.
textInputAddon(inputId, label, value = "", placeholder = NULL, addon,
width = NULL)
The input
slot that will be used to access the value.
Display label for the control, or NULL
for no label.
Initial value..
A character string giving the user a hint as to what can be entered into the control.
An icon tag, created by icon.
The width of the input : 'auto', 'fit', '100px', '75%'
A switch control that can be added to a UI definition.
# NOT RUN {
## Only run examples in interactive R sessions
if (interactive()) {
shinyApp(
ui = fluidPage(
textInputAddon(inputId = "id", label = "Label", placeholder = "Username", addon = icon("at")),
verbatimTextOutput(outputId = "out")
),
server = function(input, output) {
output$out <- renderPrint({
input$id
})
}
)
}
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab