Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

numeric_input

Create Semantic UI Numeric Input


Description

This creates a default numeric input using Semantic UI. The input is available under input[[input_id]].

Usage

numeric_input(
  input_id,
  label,
  value,
  min = NA,
  max = NA,
  step = NA,
  type = NULL,
  icon = NULL,
  placeholder = NULL,
  ...
)

numericInput(
  inputId,
  label,
  value,
  min = NA,
  max = NA,
  step = NA,
  width = NULL,
  ...
)

Arguments

input_id

Input name. Reactive value is available under input[[input_id]].

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 numeric_input like type or icon.

inputId

The input slot that will be used to access the value.

width

The width of the input.

Details

The inputs are updateable by using updateNumericInput.

Examples

## 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)
}

shiny.semantic

Semantic UI Support for Shiny

v0.4.2
MIT + file LICENSE
Authors
Filip Stachura [aut], Dominik Krzeminski [cre], Krystian Igras [aut], Adam Forys [aut], Paweł Przytuła [aut], Jakub Chojna [aut], Olga Mierzwa-Sulima [aut], Ashley Baldry [ctb], Jakub Chojna [ctb], Olga Mierzwa-Sulima [ctb], Pedro Manuel Coutinho da Silva [ctb], Paweł Przytuła [ctb], Kamil Żyła [ctb], Rabii Bouhestine [ctb], Appsilon Sp. z o.o. [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.