Description Usage Arguments Value Functions Note
Creates a Slider with a Checkbox to mark "I don't know" and corresponding functionality.
1 2 3 4 5 6 7 8 9 10 | sliderCheckboxInput(id, description = "", min = 0, max = 100,
value = 30, default = value, cb_title = "I don't know",
sliderlabel = "", sliderstate = "", sliderclass = "",
width = "100%")
sliderCheckbox(input, output, session, oldvalue = NULL,
check_changeDefaultNumeric = FALSE, check_enableOnClick = FALSE)
updateSliderCheckboxInput(session, id, description = NULL, min = NULL,
max = NULL, default = NULL, cb_title = NULL)
|
id |
Modules id. |
description |
Label for Slider. |
min |
Slider minimum value. |
max |
Slider maximum value. |
value |
Slider initial value. If NA, Checkbox will be activated and default returned. |
default |
Value to be returned if Checkbox is active. |
cb_title |
Description Label for Checkbox. |
sliderlabel |
Default class of slidercheckboxes, to use with custom prettify-function to have individual labels. |
sliderstate |
Default state of slider,see |
sliderclass |
Default class of slider, see |
width |
The width of the |
check_changeDefaultNumeric |
Should defaultNumeric be observed for changes? Enables updating DefaultNumeric when slider is disabled, but is time-consuming |
check_enableOnClick |
Should disabled slider be activated when clicked on? Time-consuming. |
fluidrow with slider and checkbox for Input, values as described below.
sliderCheckbox
: Returns list of reactives and functions.
#TODO: Documentation.
Slidervalue if checkbox is FALSE, else default.
Value which sider had when checkbox was last checked will be returned in attribute "oldvalue".
updateSliderCheckboxInput
: Updates static parts ofsliderCheckboxInput (not values!), ignoring all NULL-values.
For Usage of Modules, see https://shiny.rstudio.com/articles/modules.html.
To use the functionality, shinyjs
must have been loaded and
initialised
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.