Comments & hyperlinks
Legacy comments, threaded comments, and hyperlinks.
Comments
src/worksheet/comments.tsmakeLegacyComment function
src/worksheet/comments.ts:18function makeLegacyComment(opts: { author: string; ref: string; text: string }): LegacyCommentParameters
| Name | Type | Description |
|---|---|---|
opts | { author: string; ref: string; text: string } |
Returns
LegacyComment
Hyperlinks
src/worksheet/hyperlinks.tsmakeHyperlink function
src/worksheet/hyperlinks.ts:71Build a validated Hyperlink. target is checked against what the
OPC Target attribute accepts, so a bad URL fails here rather than as an
Excel repair prompt on a package that has already been written.
function makeHyperlink(opts: Partial<Hyperlink> & { ref: string }): HyperlinkParameters
| Name | Type | Description |
|---|---|---|
opts | Partial<Hyperlink> & { ref: string } |
Returns
Hyperlink
Threaded comments
src/worksheet/threaded-comments.tsmakeThreadedComment function
src/worksheet/threaded-comments.ts:47Build a threaded comment with a new id. created defaults to now, written
in UTC with centiseconds and no zone suffix, which is what Excel writes.
function makeThreadedComment(opts: { created?: Date; parentId?: string; personId: string; ref: string; text: string }): ThreadedCommentParameters
| Name | Type | Description |
|---|---|---|
opts | { created?: Date; parentId?: string; personId: string; ref: string; text: string } |
Returns
ThreadedComment