numericValueUI: Wrapper around shiny::numericInput.

Usage Arguments

Usage

1
2
3
4
5
numericValueUI(id,
  label = paste("Please provide a label argument to the numericInputUI",
  " with id = ", id, ".", sep = ""), value = 0, min = value - 3 * value,
  max = value + 3 * value, step = (max - min)/100, width = "10%",
  custom_css = "")

Arguments

id

A unique string id for the numericInput. If your code is modularised, remember to wrap the id with the relevant session namespace function, e.g. numericValueUI(id = session$ns("someinput")).

label

A label for the input.

value

The default value.

min

The smallest allowed value.

max

The largest allowed value.

step

The step size when incrementing.

width

The width of the shiny::numericValue UI element. Must be valid css (i.e. "10

\item

custom_cssThe numericInput will be wrapped in a div() styled with the css code provided as a string with the custom_css input. For example, when creating multiple instances of the same type of UI element, one could provide custom_css = "display: inline-block;" to display the different elements inline.

Wrapper around shiny::numericInput.


kahaaga/shinymodules documentation built on May 6, 2019, 9:54 a.m.