page_popup | R Documentation |
Adds a button which triggers a modal dialog (popup) with specified content.
page_popup(text = "Popup", ..., title = text, footer = NULL,
wraps = NA, sizes = NA, breakpoints = NA, conditions = "",
id = NULL)
text |
Text in the triggering button. |
... |
Elements to appear in the popup's body area. |
title |
Content to appear in the popup's header area. Defaults to |
footer |
A list of elements to include in the footer. |
wraps |
The class of wrapper to place elements in; either |
sizes |
The relative size of each wrapper, between 1 and 12, or |
breakpoints |
Bootstrap breakpoint of each wrapper; one of |
conditions |
A character for each element representing the conditions in which that should be showing
(e.g., |
id |
Unique ID of the section. |
See the Bootstrap grid documentation.
A character vector of the content to be added.
## Not run:
page_popup(
"<h1>Title</h1>",
"<p>body</p>",
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.