Description Usage Arguments Value Author(s) See Also Examples
Create a table of input controls for entry of unstructured text values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
inputId |
the |
label |
Display label for the control, or |
value |
Initial value |
width |
The width of the input, e.g. |
leftLabel |
Should the label column be the left column or the right column.
|
textInput_cell
returns a character vector the length of inputId
.
textInput_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 | ## Not run:
options(pixiedust_print_method = "html")
shinyApp(
ui = shinyUI(
wellPanel(uiOutput("sampleUI"))
),
server = shinyServer(function(input, output){
output$sampleUI <-
renderText({
textInput_row(inputId = paste0("car", 1:nrow(mtcars)),
label = rownames(mtcars)) %>%
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.