Description Usage Arguments Value Author(s) Examples
Create text area inputs, similar to textInput
, but may be
sized as a box to allow for larger (paragraph) inputs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
inputId |
The input slot that will be used to access the value. |
label |
Display label for the control, or |
value |
The initial text to be shown in the text box. |
leftLabel |
Should the label column be the left column or the right column.
|
... |
Additional named arguments to paste into the text area tag. Some recommended
tags: |
textArea_cell
returns a character vector the length of inputId
.
textArea_row
returns a data frame with two columns and a row for every
element in inputId
Benjamin Nutter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
options(pixiedust_print_method = "html")
shinyApp(
ui = shinyUI(
wellPanel(uiOutput("sampleUI"))
),
server = shinyServer(function(input, output){
output$sampleUI <-
renderText({
textArea_row(inputId = paste0("car", 1:nrow(mtcars)),
label = rownames(mtcars),
rows = 3,
cols = 40) %>%
dust() %>%
print(asis = FALSE)
})
})
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.