Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kuzalekon
Copy link
Contributor

@kuzalekon kuzalekon commented Jul 5, 2018

Hail!

In MS Excel it is possible to set a screen tip for a hyperlink. Pull-request adds a similar capability to ExcelJS.

Thanks!

@kuzalekon kuzalekon changed the title Add a "tooltip" property to hyperlink value Ability to set tooltip for hyperlink Jul 6, 2018
@soukar61
Copy link

soukar61 commented Jul 5, 2021

I am not able to add tooltip along with hyperlink. Getting bellow error

Code

newRow.getCell(1).value = {
  text: 'www.mylink.com',
  hyperlink: 'http://www.mylink.com',
  tooltip: 'www.mylink.com'
};

Error

ERROR in src/app/shared/Service/export-xlsx-service.ts(77,15): error TS2322: Type '{ text: any; hyperlink: any; tooltip: any; }' is not assignable to type 'CellValue'.
Object literal may only specify known properties, and 'tooltip' does not exist in type 'Date | CellErrorValue | CellRichTextValue | CellHyperlinkValue | CellFormulaValue | CellSharedFormulaValue'.

Versions using:

JSZip v3.6.0
exceljs v^4.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants