textAreaInput | R Documentation |
Create a text area input control for entry of unstructured text values.
textAreaInput(inputId, label, value = "", width = NULL, placeholder = NULL)
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. |
## 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.