Is there anyway to set table border colour and opacity?
Use custom hLineColor & vLineColor functions in the layout definition. There is an example in the "Tables" tab in the playground:
{
table {
(table definition)
},
layout: {
fillColor: function (i, node) {
return (i % 2 === 0)) ? '#fafafe' : null;
},
hLineColor: function (i, node) {
return (i === 0 || i === node.table.body.length) ? 'black' : 'gray';
},
vLineColor: function(i, node) {
return (i === 0 || i === node.table.widths.length) ? 'black' : 'gray';
}
}
}
Most helpful comment
Use custom hLineColor & vLineColor functions in the layout definition. There is an example in the "Tables" tab in the playground: