textAreaInput {shiny.semantic} | R Documentation |
Create a semantic Text Area input
Description
Create a text area input control for entry of unstructured text values.
Usage
textAreaInput(inputId, label, value = "", width = NULL, placeholder = NULL)
Arguments
inputId |
Input name. Reactive value is available under |
label |
character with label put above the input |
value |
Pass value if you want to have default text. |
width |
The width of the input, eg. "40px" |
placeholder |
Text visible in the input when nothing is inputted. |
Examples
## Only run examples in interactive R sessions
if (interactive()) {
ui <- semanticPage(
textAreaInput("a", "Area:", value = "200", width = "200px"),
verbatimTextOutput("value")
)
server <- function(input, output, session) {
output$value <- renderText({ input$a })
}
shinyApp(ui, server)
}
[Package shiny.semantic version 0.5.1 Index]