make_html_dropdown: Create html code for a dropdown menu.

Description Usage Arguments

View source: R/make_html_dropdown.R

Description

Create html code for a dropdown menu.

Usage

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
)

Arguments

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


michaelfrancenelson/rmd.utils documentation built on Dec. 21, 2021, 5:57 p.m.