fd_numeric: Numeric Input for Foundation UI

Description Usage Examples

View source: R/input.R

Description

Numeric Input for Foundation UI

Usage

1
fd_numeric(id, label, value, min = NULL, max = NULL, step = NULL)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (interactive()) {
  ui <- fd_page(
    fd_numeric("test_num", "Number", 5, min = 1, max = 10),
    shiny::textOutput("out_num")
  )

  server <- function(input, output) {
    output$out_num <- shiny::renderText(input$test_num)
  }
}

ashbaldry/shinyfoundation documentation built on Nov. 3, 2019, 1:57 p.m.