1
forked from sheetjs/sheetjs
sheetjs/docbits/66_comments.md
SheetJS 3a310bd3a7 Read/Write Comments
- XLSB/XLSX/XLML write comments
- BIFF2 write date cells (see  h/t @roccomuso)
- ODS read cell comments (fixed  h/t @yisk)
- XLSX / XLSB emit empty comments when necessary
- changed node detection logic (fixes  h/t @mhenris)

- fixes  h/t @ylbweb
- fixes  h/t @hanxi @osecki
- fixes  h/t @abarik1981 @stla
- fixes  h/t @aravindkoneru @ryangallen
2017-04-02 02:47:25 -04:00

18 lines
611 B
Markdown

#### Cell Comments
Cell comments are objects stored in the `c` array of cell objects. The actual
contents of the comment are split into blocks based on the comment author. The
`a` field of each comment object is the author of the comment and the `t` field
is the plaintext representation.
For example, the following snippet appends a cell comment into cell `A1`:
```js
if(!ws.A1.c) ws.A1.c = [];
ws.A1.c.push({a:"SheetJS", t:"I'm a little comment, short and stout!"});
```
Note: XLSB enforces a 54 character limit on the Author name. Names longer than
54 characters may cause issues with other formats.