Skip to content

Add support for table blocks#1490

Merged
nlopes merged 2 commits into
slack-go:masterfrom
williamclot:will/table-block
Nov 13, 2025
Merged

Add support for table blocks#1490
nlopes merged 2 commits into
slack-go:masterfrom
williamclot:will/table-block

Conversation

@williamclot

Copy link
Copy Markdown
Contributor

Through the slack docs it seems possible to build a table block type: https://docs.slack.dev/reference/block-kit/blocks/table-block/

This block type is not yet available through this library. This PR introduces this new block.

Usage

// initialise the table block
tableBlock := NewTableBlock("test1")

// build the table row by row
tableBlock.AddRow(cells ...*RichTextBlock)
tableBlock.AddRow(cells ...*RichTextBlock)

@williamclot williamclot marked this pull request as ready for review November 6, 2025 16:02
@nlopes nlopes self-requested a review November 13, 2025 16:47
@nlopes nlopes linked an issue Nov 13, 2025 that may be closed by this pull request
@nlopes nlopes merged commit 3f3e2e5 into slack-go:master Nov 13, 2025
4 checks passed
nlopes added a commit that referenced this pull request Dec 16, 2025
##### PR preparation
Run `make pr-prep` from the root of the repository to run formatting,
linting and tests.

done

Extending the unmarshal logic missed in
#1490

Before
<img width="440" height="135" alt="image"
src="https://github.com/user-attachments/assets/96d144ac-e862-4dec-9f7f-c0117863a217"
/>

After
<img width="434" height="130" alt="image"
src="https://github.com/user-attachments/assets/55dc9b18-0f55-49e0-be3a-12b36425a7fb"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support the table block

2 participants