Description Usage Arguments Examples
Add an action button to your shiny UI with a question mark help icon (by default).
In combination with observe_helpers
this icon will produce a modal
dialog box in the app, with content and title as specified. You may pass inline content
for the modal, or else specify the name of a markdown file to include.
1 2 3 |
shiny_tag |
A shiny element, such as an input or output (but any shiny tag will do). |
icon |
A character string of the name of the icon to display (font awesome). |
colour |
Any valid CSS colour for the icon. |
type |
Either 'markdown' to include a helpfile, or 'inline' to specify text. |
title |
The title to use for your modal. Leave as "" to have no title (for example, if your markdown document has a header you wish to use instead). |
content |
If |
size |
Either 's', 'm' or 'l' - the size of the modal dialog to display. |
buttonLabel |
The text for the modal button - "Ok" by default. |
easyClose |
Whether the modal can be dismissed by pressing Escape, or clicking
outside the modal. Defaults to |
fade |
Whether the modal has a fade in animation. Defaults to |
... |
Other arguments to pass to the |
1 2 3 4 5 6 |
<div class="shinyhelper-wrapper">
<button id="go" type="button" class="btn btn-default action-button">click me!</button>
<div class="shinyhelper-container" style="color: red;">
<i class="fa fa-exclamation shinyhelper-icon" data-modal-size="m" data-modal-type="markdown" data-modal-title="" data-modal-content="ClickHelp.md" data-modal-label="Okay" data-modal-easyclose="TRUE" data-modal-fade="FALSE"></i>
</div>
</div>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.