NumericInput {shiny.blueprint} | R Documentation |
NumericInput
Description
Documentation: https://blueprintjs.com/docs/#core/components/numeric-input
Usage
NumericInput(...)
NumericInput.shinyInput(inputId, ..., value = defaultValue)
Arguments
... |
Component props and children. See the official Blueprint docs for details. |
inputId |
The |
value |
Initial value. |
Value
Object with shiny.tag
class suitable for use in the UI of a Shiny app.
Examples
library(shiny)
library(shiny.blueprint)
ui <- function(id) {
ns <- NS(id)
tagList(
NumericInput(
onValueChange = setInput(ns("value1")),
intent = "primary"
),
textOutput(ns("value1Output")),
NumericInput.shinyInput(
inputId = ns("value2"),
intent = "primary"
),
textOutput(ns("value2Output"))
)
}
server <- function(id) {
moduleServer(id, function(input, output, session) {
output$value1Output <- renderText(input$value1)
output$value2Output <- renderText(input$value2)
})
}
if (interactive()) shinyApp(ui("app"), function(input, output) server("app"))
[Package shiny.blueprint version 0.3.0 Index]