Skip to content

Commit

Permalink
Merge pull request #91 from jcardus/patch-1
Browse files Browse the repository at this point in the history
support hyperlink
  • Loading branch information
LuisEnMarroquin authored Nov 7, 2023
2 parents 60904b5 + 8d63e1d commit ddfc9ff
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 ddfc9ff

Please sign in to comment.