Title: | Create FAQ Page |
---|---|
Description: | Create Frequently Asked Questions page for Shiny application. |
Authors: | Jiena McLellan [aut, cre] , Michael Condouris [ctb] , Alex Lais [ctb], Jason Forrest [ctb], Gunvansh Khanna [ctb] |
Maintainer: | Jiena McLellan <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2024-10-12 04:09:38 UTC |
Source: | https://github.com/jienagu/faq |
Create FAQ page
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" )
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" )
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 |
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")
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")
Output and render functions for using faq within Shiny applications and interactive Rmd documents.
faqOutput(outputId, width = "100%", height = "100%") renderFaq(expr, env = parent.frame(), quoted = FALSE)
faqOutput(outputId, width = "100%", height = "100%") renderFaq(expr, env = parent.frame(), quoted = FALSE)
outputId |
output variable to read from |
width |
width of the widget |
height |
height of the widget |
expr |
An expression that generates a faq |
env |
The environment in which to evaluate |
quoted |
Is |