Custom Dialog bound to a DOM element by id. See 'js/src/MuiDialogTriggerId.jsx'. Open/close state is managed entirely client-side, so this works in Shiny apps, Quarto documents, and static HTML without server logic.
Examples
if (FALSE) { # interactive()
library(shiny)
library(muiMaterial)
ui <- muiMaterialPage(
Button(id = "openDialog", "Open dialog"),
Dialog.triggerId(
"openDialog",
DialogTitle("Hello"),
DialogContent("Open/close managed entirely client-side.")
)
)
shinyApp(ui, function(input, output, session) {})
}
