block_confirm.Rd
An object that defines a dialog that provides a confirmation step to any interactive element. This dialog will ask the user to confirm their action by offering a confirm and deny buttons.
block_confirm(title, text, confirm, deny)
title | character, dialog's title |
---|---|
text | block_text, the explanatory text that appears in the confirm dialog |
confirm | character, text of the button that confirms the action. |
deny | character, text of the button that cancels the action. |
block_confirm class
Other compositions:
block_option_groups()
,
block_option()
,
block_text()
block_confirm( title = "Are you sure?", text = block_text("Wouldn't you prefer a good game of _chess_?"), confirm = "Do it", deny = "Stop, I've changed my mind!" )#> { #> "title": { #> "type": "plain_text", #> "text": "Are you sure?" #> }, #> "text": { #> "type": "mrkdwn", #> "text": "Wouldn't you prefer a good game of _chess_?" #> }, #> "confirm": { #> "type": "plain_text", #> "text": "Do it" #> }, #> "deny": { #> "type": "plain_text", #> "text": "Stop, I've changed my mind!" #> } #> }