Description Usage Arguments Details See Also Examples
Create button revealing hidden content
1 | hide(button_text = "Solution")
|
button_text |
Text to appear on the button that reveals the hidden content. |
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.
1 2 3 4 5 |
[1] "\n<div class='solution'><button>Solution</button>\n"
[1] "\n<div class='solution'><button>Click here for a hint</button>\n"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.