Description Usage Arguments Details Examples
This creates a default numeric input using Semantic UI. The input is available
under input[[input_id]]
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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. |
The inputs are updateable by using updateNumericInput
.
1 2 3 4 5 6 7 8 9 10 | ## 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.