block_confirm: Confirmation dialog object

View source: R/compositions.R

block_confirmR Documentation

Confirmation dialog object

Description

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.

Usage

block_confirm(title, text, confirm, deny)

Arguments

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.

Value

block_confirm class

See Also

Other compositions: block_option_groups(), block_option(), block_text()

Examples

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!"
)

yonicd/slackblocks documentation built on March 2, 2023, 6:53 a.m.