Formatting the cells
The Table supports a simple subset of Markdown out of the box.
Use double newline \n
to render multiple paragraphs. We also have
UL
lists.
To support links, you'll first need to call the
linkable
method, just to remind yourself that you may now become exposed to
phishing attacks.
When you link to something, make sure to include the protocol
http(s)://
and note that links should not be used for internal navigation, at
least not just yet.
If you need to support links only in specific column, you can set the
linkable
property to true
in a column's config:
If the link should work more like a button, you can intecept the click action with the
onlink
callback. In this case, you can use any string as the
href
.
You can disable the Markdown in the table by call the disableMarkdown
method.
To enable it again you can call the enableMarkdown
method.
You can disable the Markdown in specific column by column's property
markdownFormatting
: