Is there a way for me to make the tooltip interactive so I can add buttons and other interactive components within the tooltip? Currently, if I move the mouse to the tooltip, it will disappear.
Thanks.
Jussi Nieminen
unread,
Sep 21, 2020, 6:42:27 PM9/21/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron WebViewer
Hi,
setAnnotationContentOverlayHandler API is attached to mouse events and tooltip hovers based on mouse location so customizing it way you mention is not possible. However we do have annotation context menu for this purpose that can be customized. You can find how to customize annotation popup from this document https://www.pdftron.com/documentation/web/guides/customizing-popup/.
Is annotation popup API sufficient for your use case?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron WebViewer
Hello Jussi,
Thanks for the response. Regarding customizing popup, how can I add a customized component (React component if possible) to it? It's not quite clear from the document. Let say instead of a button, I want to add a dropdown list to the contextMenuPopup. Would that work?
Thanks
Jussi Nieminen
unread,
Sep 24, 2020, 7:52:03 PM9/24/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message