input_slider: Add a range slider to a website

View source: R/input_slider.R

input_sliderR Documentation

Add a range slider to a website

Description

Adds an input to select within the entered range.

Usage

input_slider(label, id = label, ..., min = 0, max = 1, step = 1,
  default = max, note = NULL, dataset = NULL, depends = NULL)

Arguments

label

Label of the input for the user.

id

Unique id of the element to be created.

...

Additional attributes to set on the element.

min

The smallest value in the range.

max

The largest value in the range.

step

How much moving the handle adjusts the selected value.

default

Starting value of the slider handle.

note

Text to display as a tooltip for the input.

dataset

The name of an included dataset, where variable should be looked for; only applies when there are multiple datasets with the same variable name.

depends

The id of another input on which the options depend; this will take president over dataset and variable, depending on this type of input depends points to.

Value

A character vector of the contents to be added.

Examples

## Not run: 
input_slider()

## End(Not run)

uva-bi-sdad/community documentation built on Oct. 12, 2023, 1:18 p.m.