slider: Generate an HTML slider input

Description Usage Arguments Examples

View source: R/helpers.R

Description

Generate an HTML slider input

Usage

1
slider(min = 0, max = 100, step = 1, value = mean(c(min, max)), title = "")

Arguments

min

minimum

max

maximum

step

increment

value

starting value

title

title of input

Examples

1
2
3
4
5
# Run this in a cell to display a number input
input <- slider(min = 1, max = 10, step = 1, value = 5, title = "Your title")

# In another cell, retrieve the value of the slider input:
as.numeric(input)

herbps10/Reactor documentation built on May 14, 2021, 8:04 p.m.