Description Usage Arguments Value Examples
Create text field with add-on.
1 2 | textInputAddon(inputId, label, value = "", placeholder = NULL, addon,
width = NULL)
|
inputId |
The |
label |
Input label. |
value |
TRUE or FALSE. |
placeholder |
A character string giving the user a hint as to what can be entered into the control. |
addon |
An icon |
width |
The width of the input : 'auto', 'fit', '100px', '75%' |
A switch control that can be added to a UI definition.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## 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
})
}
)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.