Description Usage Arguments Value Author(s) See Also Examples
Create an input control for entry of numeric values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
inputId |
The |
label |
Display label for the control, or |
value |
Initial value. |
min |
Minimum allowed value. |
max |
Maximum allowed value. |
step |
Interval to use when stepping between min and max |
width |
The width of the input, e.g. |
leftLabel |
Should the label column be the left column or the right column.
|
numericInput_cell
returns a character vector the length of inputId
numericInput_row
returns a data frame with two columns and a row for each element of
inputId
Benjamin Nutter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
options(pixiedust_print_method = "html")
shinyApp(
ui = shinyUI(
wellPanel(uiOutput("sampleUI"))
),
server = shinyServer(function(input, output){
output$sampleUI <-
renderText({
numericInput_row(inputId = paste0("car", 1:nrow(mtcars)),
label = rownames(mtcars),
value = 50,
min = 0,
max = 100,
step = 10) %>%
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.