View source: R/layout_blocks.R
section_block | R Documentation |
A section is one of the most flexible blocks available - it can be used as a simple text block, in combination with text fields, or side-by-side with any of the available block elements.
section_block(text = NULL, block_id = NULL, fields = NULL, accessory = NULL)
text |
The text for the block, in the form of a |
block_id |
A string acting as a unique identifier for a block. If not specified, one will be generated. You can use this block_id when you receive an interaction payload to identify the source of the action. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id. |
fields |
Required if no text is provided. A list of |
accessory |
One of the available element objects. |
https://api.slack.com/reference/block-kit/blocks#section
Other Blocks:
actions_block()
,
context_block()
,
divider_block()
,
file_block()
,
header_block()
,
image_block()
,
input_block()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.