faq: FAQ page

Description Usage Arguments Examples

View source: R/faq.R

Description

Create FAQ page

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
faq(
  data,
  width = NULL,
  height = NULL,
  elementId = NULL,
  faqtitle = "Frequently Asked Questions",
  expand_all_button_text = "+ Expand All",
  collapse_all_button_text = "- Collapse All",
  content_background_color = "white"
)

Arguments

data

df with question and answer columns

width

width of this widget

height

height of this widget

elementId

ellement ID of this widget

faqtitle

title for this widgets

expand_all_button_text

text on expand all button

collapse_all_button_text

text on collapse all button

content_background_color

background color for answers

Examples

1
2
3
4
5
6
7
df <- data.frame(
question = c("Question1", "Question2", "Question3"),
answer = c("answer for question1",
           "question2 answer",
           "answer3")
)
faq::faq(data = df, elementId = "faq", faqtitle = "Frequently Asked Questions")

faq documentation built on Jan. 25, 2021, 1:06 a.m.