View source: R/make_html_dropdown.R
Create html code for a dropdown menu.
1 2 3 4 5 6 7 8 9 | make_html_dropdown(
options,
fmt_select = "<select>\n%s\n</select>",
fmt_option = "<option>%s</option>",
schoice_q = "select the best answer",
mchoice_q = "select the best answer or answers",
mchoice = FALSE,
cat = TRUE
)
|
options |
a vector containing the elements to include int he dropdown |
fmt_select |
the format for the html select element |
fmt_option |
the format for the html option elemment |
schoice_q |
the prompt text to display for single-choice |
mchoice_q |
the prompt text to display for multiple-choice |
mchoice |
whether or not to display the multiple-choice question description |
cat |
whether to cat() the results |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.