This widget consists of two spans and a slider.
add_slider_with_text(my_html, into = "<body>", text, text_id, value, oninput = "", input_default = T, ...)
my_html | html in a vector of strings; output from 'create_html'. |
---|---|
into | character string; unique identifier of a line in the html. Element id is highly recommended. |
text | character string; description of the slider. |
text_id | character string; id for the span tag which contains the text. |
value | character string; the slider default value. |
oninput | character string; command to run when slider updates. |
input_default | T or F; whether to use the default oninput command (which controls the textbox). |
... | Extra parameter that goes into a tag, e.g. In <div type = "xxx">, 'type = "xxx"' goes to ... . |