numeric_input | R Documentation |
This creates a default numeric input using Semantic UI. The input is available
under input[[input_id]]
.
numeric_input(
input_id,
label,
value = NULL,
min = NA,
max = NA,
step = NA,
type = NULL,
icon = NULL,
placeholder = NULL,
...
)
numericInput(
inputId,
label,
value = NULL,
min = NA,
max = NA,
step = NA,
width = NULL,
placeholder = NULL,
...
)
input_id |
Input name. Reactive value is available under |
label |
Display label for the control, or NULL for no label. |
value |
Initial value of the numeric input. |
min |
Minimum allowed value. |
max |
Maximum allowed value. |
step |
Interval to use when stepping between min and max. |
type |
Input type specifying class attached to input container. See [Fomantic UI](https://fomantic-ui.com/collections/form.html) for details. |
icon |
Icon or label attached to numeric input. |
placeholder |
Inner input label displayed when no value is specified |
... |
Other parameters passed to |
inputId |
The input slot that will be used to access the value. |
width |
The width of the input. |
Either 'value' or 'placeholder' should be defined.
The inputs are updateable by using updateNumericInput
.
## Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
library(shiny.semantic)
ui <- semanticPage(
numeric_input("ex", "Select number", 10),
)
server <- function(input, output, session) {}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.