Comments & hyperlinks

Legacy comments, threaded comments, and hyperlinks.

3 exports from 3 source files

Comments

src/worksheet/comments.ts

makeLegacyComment function

src/worksheet/comments.ts:18
function makeLegacyComment(opts: { author: string; ref: string; text: string }): LegacyComment

Parameters

NameTypeDescription
opts { author: string; ref: string; text: string }

Returns

LegacyComment

Threaded comments

src/worksheet/threaded-comments.ts

makeThreadedComment function

src/worksheet/threaded-comments.ts:47

Build 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 }): ThreadedComment

Parameters

NameTypeDescription
opts { created?: Date; parentId?: string; personId: string; ref: string; text: string }

Returns

ThreadedComment