Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to render tables in Slack

I have a slack application that responds with formatted data in mrkdwn but it would be nice to have the information presented in table form like so

sample view from ipushpull

Am trying to implement this but cant quite find how to format this message. The only close solution i have is taking a screen grab of the table and sending it instead but that affects the applications response time. Any help would be appreciated thanks

like image 481
Caleb Njiiri Avatar asked Nov 23 '19 10:11

Caleb Njiiri


People also ask

Can you make tables in Slack?

The official answer is that Slack messages do not support tables. They suggest to generate a table and post it as an image. They also said that they will add it to their backlog.

How do I render a markdown in Slack?

To do so, open Slack's preferences menu by clicking the menu at the top-left corner of the Slack window and selecting “Preferences.” Click “Advanced” in the left pane and enable “Format messages with markup” under Input Options. The change will take effect immediately.

How do I format in Slack?

When you're writing a message in Slack, press the Aa button to reveal a formatting panel in both Slack's desktop and mobile apps. Highlight any text you've written then click options like bold, italics, strikethrough or code format to give messages the right emphasis or to make key excerpts stand out.

What is Slack markdown?

Slack is a popular team messaging and collaboration application that supports a subset of the Markdown syntax. Different parts of the interface provide different levels of Markdown support.

How to render tables in slack messages?

Slack has no built-in support to render tables in messages. Draw table with chars in the message using a monospace font ( Example) Draw table with chars and upload as plain text snippet with files.upload

Is it possible to add a table markup in slack?

Slack does not support rendering of tables so this markup will not work. You can use fields, which will be rendered as 2 columns on most devices. See fields in layout blocks. attach the image to your message. Thanks for contributing an answer to Stack Overflow!

How to send charts and graphs to slack?

In order to send a chart or graph to your Slack channel, you must first render it as an image. In this tutorial we’ll use the free and open-source QuickChart API to generate chart images. To send these charts to Slack, you must: This tutorial is written assuming you are using Javascript, but the approach is general enough to work for any language.

How do I format text in a slack message?

Formatting helps add detail and clarity to your messages in Slack. You can use the formatting toolbar in the message field, or use markup and surround text with special characters. Select the text formatting icon or highlight the text you'd like to format to choose an option.


Video Answer


1 Answers

Slack has no built-in support to render tables in messages.

Your workaround options are:

  • Draw table with chars in the message using a monospace font (Example)

  • Draw table with chars and upload as plain text snippet with files.upload

  • Render table as image and attach to a message or upload as image

like image 190
Erik Kalkoken Avatar answered Oct 26 '22 23:10

Erik Kalkoken