Description Usage Arguments Examples
Change numeric input value and settings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
session |
The session object passed to function given to shinyServer. |
input_id |
The id of the input object. |
label |
The label to set for the input object. |
value |
The value to set for the input object. |
min |
Minimum value. |
max |
Maximum value. |
step |
Step size. |
inputId |
the same as |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
library(shiny.semantic)
ui <- semanticPage(
slider_input("slider_in", 5, 0, 10),
numeric_input("input", "Numeric input:", 0)
)
server <- function(input, output, session) {
observeEvent(input$slider_in, {
x <- input$slider_in
update_numeric_input(session, "input", value = x)
})
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.