radio_button_group_element: Radio Button Group Element

View source: R/block_elements.R

radio_button_group_elementR Documentation

Radio Button Group Element

Description

A radio button group that allows a user to choose one item from a list of possible options. To use interactive components, you will need to make some changes to prepare your app. Read our guide to enabling interactivity. Radio buttons are supported in the following app surfaces: Home tabs Modals Messages. Works with block types: Section Actions Input

Usage

radio_button_group_element(
  action_id,
  options,
  initial_option = NULL,
  confirm = NULL
)

Arguments

action_id

An identifier for the action triggered when the checkbox group is changed. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_ids in the containing block. Maximum length for this field is 255 characters.

options

A list of option_objects. A maximum of 10 options are allowed.

confirm

A confirm_object that defines an optional confirmation dialog that appears after clicking one of the radio buttons in this element.

initital_option

An option_object that exactly matches one of the options within options. This option will be selected when the radio button group initially loads.

See Also

https://api.slack.com/reference/block-kit/block-elements#radio

Other Elements: button_element(), channels_multi_select_menu(), channels_select_menu(), checkbox_element(), conversations_multi_select_menu(), conversations_select_menu(), datepicker_element(), external_multi_select_menu(), external_select_menu(), image_element(), overflow_menu_element(), plain_text_input_element(), static_multi_select_menu(), static_select_menu(), timepicker_element(), users_multi_select_menu(), users_select_menu()


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