Description Usage Arguments Details Value Examples
Generate a widget that displays FAQs in an information/about section of an SNAP Shiny app.
1 2 |
id |
character, the id for the |
format |
character, |
bscollapse_args |
a list of arguments passed to bsCollapse. Defaults to |
showcase_args |
a list of arguments passed to |
faq
is a simple function containing a dictionary of common SNAP FAQ entries.
It is meant to override apputils::faq
.
It returns a Bootstrap Collapse menu FAQ format by default. Changing to format = "list"
alternatively returns a list of question and answer pairs, each being a length-2 sublist.
In this case, each question is a character string and each answer is either a simple HTML paragraph
or a taglist of multiple HTML components if the answer contains more complex content (e.g., images and links).
A key difference with the open
argument that can be passed in a list to bscollapse_args
is that it must simply match a single dictionary entry id
, not a collapse panel question title or id (e.g., open = "apps"
).
The current FAQ dictionary IDs and the questions they refer to include:
Why use probability distributions?
What is a GCM?
What is an RCP?
What are fire management zones?
How did you make this app? Are other apps available?
What do "simulations" refer to in the data selection area?
What are fact sheets?
Why are fact sheets not always available?
What do the available distributions represent?
a shinyBS::bsCollapse
object or a list.
1 | #not run
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.