Creates a page where the participant responds by manipulating a slider.
slider_page( label, prompt, min, max, value, save_answer = TRUE, button_text = "Next", on_complete = NULL, admin_ui = NULL, step = NULL, round = FALSE, ticks = TRUE, animate = FALSE, width = NULL, sep = ",", pre = NULL, post = NULL, timeFormat = NULL, timezone = NULL, dragRange = TRUE )
Label for the current page (character scalar).
Prompt to display (character scalar or Shiny tag object).
The minimum value (inclusive) that can be selected.
The maximum value (inclusive) that can be selected.
The initial value of the slider. A numeric vector of length one
will create a regular slider; a numeric vector of length two will create a
double-ended range slider. A warning will be issued if the value doesn't
Whether or not to save the answer.
Text for the submit button (character scalar).
Optional function to execute on leaving the page
(after successful validation).
The argument list should include
Optional UI component for the admin panel.
Specifies the interval between each selectable value on the
The width of the input, e.g.
Separator between thousands places in numbers.
A prefix string to put in front of the value.
A suffix string to put after the value.
Only used if the values are Date or POSIXt objects. A time
https://github.com/samsonjs/strftime for more details. The allowed
format specifications are very similar, but not identical, to those for R's
Only used if the values are POSIXt objects. A string
specifying the time zone offset for the displayed times, in the format
This option is used only if it is a range slider (with two
The RStudio preview function seems not to work for slider pages on some machines.