| ds_dialog | R Documentation |
Create a modal dialog using Designsystemet styles. Place ds_dialog() in
your UI and open/close it from the server with show_ds_dialog() and
hide_ds_dialog().
ds_dialog(..., id = NULL, class = NULL)
... |
Dialog content |
id |
Dialog ID for opening/closing via |
class |
Additional CSS classes |
A Shiny tag object
ds_dialog(
id = "my-dialog",
ds_heading("Dialog Title", level = 2),
ds_paragraph("Dialog content here."),
ds_button("Close", onclick = "this.closest('dialog').close()")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.