Skip to content

Commit

Permalink
support hyperlink
Browse files Browse the repository at this point in the history
support hyperlink
  • Loading branch information
jcardus authored Nov 7, 2023
1 parent 60904b5 commit 8d63e1d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/main-library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ const applyColumnFormat = (worksheet: WorkSheet, columnIds: string[], columnForm
const ref = utils.encode_cell({ r: row, c: column })

if (worksheet[ref]) {
worksheet[ref].z = columnFormat
switch (columnFormat) {
case 'hyperlink':
worksheet[ref].l = { Target: worksheet[ref].v }
break;
default:
worksheet[ref].z = columnFormat
}
}
}
}
Expand Down

0 comments on commit 8d63e1d

Please sign in to comment.