View source: R/FrissMessageBox.R
Shows a modal with custom html in it and sends result back to input$inputName when an ok / cancel button is pressed
1 2 3 | showFormModal(session, inputName, html, okText = "ok",
cancelText = "cancel", modalStyle = "display:none",
buttonStyle = "width:50x;padding:")
|
session |
Shiny session object from the server.r page of the app that will use this function. |
inputName |
Name of the input to return the result to. |
html |
Html to put on the modal |
okText |
Text to put on the ok button |
cancelText |
Text to put on the cancel button |
modalStyle |
Style sheet properties of the modal |
buttonStyle |
Style sheet properties of the button |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.