Skip to content

Commit 4863aaf

Browse files
committed
feat: update example with col widths
1 parent dc6dc60 commit 4863aaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/styled_excel_sheet.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const ExcelSheet = ReactExport.ExcelFile.ExcelSheet;
88

99
const multiDataSet = [
1010
{
11-
columns: ["Headings", "Text Style", "Colors"],
11+
columns: [
12+
{title: "Headings", width: {wpx: 80}},//pixels width
13+
{title: "Text Style", width: {wch: 40}},//char width
14+
{title: "Colors", width: {wpx: 90}},
15+
],
1216
data: [
1317
[
1418
{value: "H1", style: {font: {sz: "24", bold: true}}},

0 commit comments

Comments
 (0)