showModal(
if(length(input$table_substance_routine_rows_selected) == 1) {
modalDialog(
title = "Warning",
"Are you sure that you want to delete this record?",
footer = tagList(
modalButton("Cancel"),
actionButton("delete_routine_confirmed", "Yes")
),
easyClose = TRUE)
} else
{
modalDialog(
title = "Warning",
"Select a row that you want to delete",
easyClose = TRUE
)
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.