'Is there a table.cell_merge() function?

Is it possible to merge table cells together in Pine like you could with Excel or Google Sheets? I'm trying to center texts within two cells, is this possible?



Solution 1:[1]

It’s now possible to merge several cells in a table to create fancy headers and separators. A merged cell doesn’t have to be a header though: you can merge cells in any direction, as long as the resulting cell doesn’t affect any already merged cells, and doesn’t go outside of the table’s bounds.

To create a merged cell, use the new table.merge_cells() function.

ref https://www.tradingview.com/blog/en/pine-tables-now-support-headers-and-tooltips-29924/

Solution 2:[2]

There's no way to merge two cells into one in Pine at the moment.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jeremy Caney
Solution 2 beeholder