confirm_object: Confirmation dialog object

View source: R/composition_objects.R

confirm_objectR 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

confirm_object(title, text, confirm, deny, style = NULL)

Arguments

title

A plain_text-only text_object that defines the dialog's title. Maximum length for this field is 100 characters.

text

A text_object that defines the explanatory text that appears in the confirm dialog. Maximum length for the text in this field is 300 characters.

confirm

A plain_text-only text_object to define the text of the button that confirms the action. Maximum length for the text in this field is 30 characters.

deny

A plain_text-only text_object to define the text of the button that cancels the action. Maximum length for the text in this field is 30 characters.

style

Defines the color scheme applied to the confirm button. A value of danger will display the button with a red background on desktop, or red text on mobile. A value of primary will display the button with a green background on desktop, or blue text on mobile. If this field is not provided, the default value will be primary.

Value

A Slack Confirmation Object

See Also

https://api.slack.com/reference/block-kit/composition-objects#confirm

Other Composition: conversation_list_filter(), dispaction_action_configuration(), option_group(), option_object(), text_object()


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.