View source: R/Widget_ModalWidget.R
ModalWidget | R Documentation |
Generic module for modal dialogs that are launched from a button.
ModalWidget( input, output, session, reactives = reactive({ fp = NULL }), static = list(tooltip = "Tooltip", title = "title", label = "label", icon = icon("bar-chart", lib = "font-awesome"), modalButtonLabel = "Cancel"), useActionLink = F, style = "color:#ffffff;padding:15px;border-left-width:0;border-right:1px solid #eee" ) ModalWidgetUI(id)
input |
arguments necessary for use with
|
output |
arguments necessary for use with
|
session |
arguments necessary for use with
|
reactives |
a |
static |
a list of arguments that are not in a reactive context and hence do not change while the app is running. |
useActionLink |
if TRUE, will use an |
style |
style settings to apply to the modal button |
id |
id to be used to define a namespace via |
Because the UI elements of the modal dialog are passed in as
reactives()$fp
, they can be namespaced and easily accessed in the
parent module that can then handle the input from the modal dialog.
Specify the UI elements of the modal dialog here
tooltip
tooltip when hovering over the button
title
title of the modal dialog
label
label of the button opening the modal dialog
icon
icon()
of the button opening the modal dialog
returns its internalValues
ModalWidget
: Server logic
ModalWidgetUI
: UI elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.