show_ds_dialog: Open a dialog from the server

View source: R/ds-details.R

show_ds_dialogR Documentation

Open a dialog from the server

Description

Sends a message to the browser to call showModal() on a ds_dialog() element already present in the UI.

Usage

show_ds_dialog(id, session = shiny::getDefaultReactiveDomain())

Arguments

id

The id of the ds_dialog() to open.

session

Shiny session object.

Value

Called for side effects.

Examples

## Not run: 
observeEvent(input$open_btn, {
  show_ds_dialog("confirm-dialog")
})

## End(Not run)

shinyds documentation built on Aug. 22, 2026, 5:08 p.m.