forked from sheetjs/sheetjs
- write !cols widths : XLSX XLSB XLML - write hyperlinks : XLML - XLSB convert date cell to numeric on write - fixed issue with assigning self in jszip issues: - closes #607 h/t @jscheid - closes #195 h/t @asfman
18 lines
603 B
Markdown
18 lines
603 B
Markdown
#### Hyperlinks
|
|
|
|
Hyperlinks are stored in the `l` key of cell objects. The `Target` field of the
|
|
hyperlink object is the target of the link, including the URI fragment. Tooltips
|
|
are stored in the `Tooltip` field and are displayed when you move your mouse
|
|
over the text.
|
|
|
|
For example, the following snippet creates a link from cell `A3` to
|
|
<http://sheetjs.com> with the tip `"Find us @ SheetJS.com!"`:
|
|
|
|
```js
|
|
ws['A3'].l = { Target:"http://sheetjs.com", Tooltip:"Find us @ SheetJS.com!" };
|
|
```
|
|
|
|
Note that Excel does not automatically style hyperlinks -- they will generally
|
|
be displayed as normal text.
|
|
|