Open sanghoTW opened 5 years ago
Maybe you can do this, removing the column and use data as title.
const borders = {
top: { style: "thin" },
bottom: { style: "thin" },
left: { style: "thin" },
right: { style: "thin" }
}
const alignment = {
horizontal: "center"
}
const multiDataSet = [
{
ySteps: -1,
columns: [ ],
data: [
[
{
value: "Name", style: { alignment: alignment, border: borders, font: { bold: true } }
},
{
value: "Type", style: { alignment: alignment, border: borders, font: { bold: true } }
}
],
[
{
value: "Felix", style: { alignment: alignment, border: borders }
},
{
value: "Cat", style: { alignment: alignment, border: borders }
}
],
[
{
value: "Pocket", style: { alignment: alignment, border: borders }
},
{
value: "Object", style: { alignment: alignment, border: borders }
}
]
]
}
];
My reason:
Steps to reproduce:
Lib Version:
I want to center the excel column(title), set a border. I didn't find a way. What should I do?