@slack/types / TableBlock
Interface: TableBlock
Defined in: block-kit/blocks.ts:375
Description
Displays structured information in a table.
See
Extends
Properties
block_id?
optional block_id: string;
Defined in: block-kit/blocks.ts:47
Description
A string acting as a unique identifier for a block. If not specified, a block_id 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.
Inherited from
column_settings?
optional column_settings: TableBlockColumnSettings[];
Defined in: block-kit/blocks.ts:387
Description
An array describing column behavior. If there are fewer items in the column_settings array than there are columns in the table, then the items in the the column_settings array will describe the same number of columns in the table as there are in the array itself. Any additional columns will have the default behavior. Maximum 20 items.
rows
rows: (
| RichTextBlock
| RawTextElement)[][];
Defined in: block-kit/blocks.ts:383
Description
An array consisting of table rows. Maximum 100 rows. Each row object is an array with a max of 20 table cells. Table cells can have a type of raw_text or rich_text.
type
type: "table";
Defined in: block-kit/blocks.ts:379
Description
The type of block. For a table block, type is always table.