info_modal | R Documentation |
'info_ui()' adds an 'actionLink()' to the that brings up the modal in 'info_server()'.
cs_info_ui( id, label = NULL, icon = shiny::icon("info-circle"), container = tags$sup ) cs_info_server( ..., title = NULL, footer = modalButton("Dismiss"), size = c("m", "s", "l", "xl"), easyClose = TRUE, fade = TRUE )
id |
The input ID |
label |
The text to display with the info link, if any |
icon |
The icon to display on the info link |
container |
A container to wrap the 'actionLink', if any. Defaults to 'tags$sup()'. |
... |
UI elements for the body of the modal dialog box |
title |
An optional title for the dialog |
footer |
UI for the footer. Use 'NULL' for no footer. |
size |
One of '"s"' for small, '"m"' for medium, '"l"' for large, or '"xl"' for extra large |
easyClose |
Can the modal dialog be dismissed by clicking outside the dialog box? If 'FALSE', the modal dialog must be dismissed by clicking on a 'modalButton()' or from a call to 'removeModal()' on the server. |
fade |
If 'FALSE', the modal dialog will have no fade-in animation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.