The addEventListener function registers event listener functions on the TXDocumentViewer object.

Introduced: X19.

<void> TXDocumentViewer.addEventListener(<string> eventName, <function> callback)

Parameters

Parameter Description
eventName A string representing the name of the event to listen for.
Event Description
"annotationsChanged" Is fired when an annotation has been changed.
"signaturesCompleted" Is fired when all signature boxes have been signed by the user.
"documentLoaded" Is fired when an document is loaded.
"documentLinkClicked" Is fired when any document-link is clicked.
"hypertextLinkClicked" Is fired when any hypertext-link is clicked.