hide_ds_dialog: Close a dialog from the server

View source: R/ds-details.R

hide_ds_dialogR Documentation

Close a dialog from the server

Description

Sends a message to the browser to call close() on a ds_dialog() element.

Usage

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

Arguments

id

The id of the ds_dialog() to close.

session

Shiny session object.

Value

Called for side effects.

Examples

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

## End(Not run)

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