overflow_menu_element: Overflow Menu Element

View source: R/block_elements.R

overflow_menu_elementR Documentation

Overflow Menu Element

Description

This is like a cross between a button and a select menu - when a user clicks on this overflow button, they will be presented with a list of options to choose from. Unlike the select menu, there is no typeahead field, and the button always appears with an ellipsis ("…") rather than customisable text. As such, it is usually used if you want a more compact layout than a select menu, or to supply a list of less visually important actions after a row of buttons. You can also specify simple URL links as overflow menu options, instead of actions. To use interactive components, you will need to make some changes to prepare your app. Read our guide to enabling interactivity. Works with block types: Section Actions

Usage

overflow_menu_element(action_id, options, confirm = NULL)

Arguments

action_id

An identifier for the action triggered when a menu option is selected. 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 to display in the menu. Maximum number of options is 5, minimum is 2.

confirm

A confirm_object that defines an optional confirmation dialog that appears after a menu item is selected.

See Also

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

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(), plain_text_input_element(), radio_button_group_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.