overflow_menu | R Documentation |
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.
overflow_menu(id, options, confirm = NULL)
id |
character, An identifier for the action triggered when a menu option is selected. |
options |
An list of block_option objects. |
confirm |
A confirm object that defines an optional confirmation dialog that appears after a menu item is selected. |
Works with block types: Section, Actions
block menu class
Other elements:
button_element()
,
checkbox_element()
,
datepicker_element()
,
image_element()
,
plaintext_element()
,
radiobuttons_element()
,
select_menu()
,
select_type_menu()
section_block( id = 'section 890', text = block_text('This is a section block with an overflow menu.'), accessory = overflow_menu( id = 'overflow', options = as.blocks( lapply(sprintf('value-%d',1:4),block_option, text = '*this is plain_text text*') ) ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.