hide: Create button revealing hidden content

Description Usage Arguments Details See Also Examples

View source: R/webex_fns.R

Description

Create button revealing hidden content

Usage

1
hide(button_text = "Solution")

Arguments

button_text

Text to appear on the button that reveals the hidden content.

Details

Writes HTML to create a content that is revealed by a button press. Call this function inline in an RMarkdown document. Any content appearing after this call up to an inline call to unhide() will only be revealed when the user clicks the button. See the Web Exercises RMarkdown Template for examples.

See Also

unhide

Examples

1
2
3
4
5
# default behavior is to generate a button that says "Solution"
hide()

# or the button can display custom text
hide("Click here for a hint")

dalejbarr/webex documentation built on Sept. 14, 2021, 5:43 a.m.