Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set tooltip for hyperlink #602

Merged
merged 6 commits into from
Jan 10, 2019
Merged

Ability to set tooltip for hyperlink #602

merged 6 commits into from
Jan 10, 2019

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