Skip to main content

@slack/types / TableBlock

Interface: TableBlock

Defined in: block-kit/blocks.ts:546

Description​

Displays structured information in a table.

See​

Table block reference.

Extends​

Properties​

block_id?​

optional block_id?: string;

Defined in: block-kit/blocks.ts:50

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​

Block.block_id


column_settings?​

optional column_settings?: TableBlockColumnSettings[];

Defined in: block-kit/blocks.ts:558

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
| RawNumberElement)[][];

Defined in: block-kit/blocks.ts:554

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 rich_text, raw_text, or raw_number.


type​

type: "table";

Defined in: block-kit/blocks.ts:550

Description​

The type of block. For a table block, type is always table.

Overrides​

Block.type