Description
This article describes how to access the event name when using the eventDocCallback
Attributes
Attribute | Description | Example/Values |
eventDocCallback | You can use this attribute to call into an event. This is triggered whenever any other event is triggered. | In the sample below we use “frageDocviewerCallbacks” as the value |
How to use it
You need a swatdocviewer object for this. In the attributes set the eventDocCallback event like this:
$ akioma.docviewer.frageDocViewerCallbacks( evenSource );
In the client logic you can then access the event name like this:
export const frageDocviewerCallbacks = ( docviewer : swat.DocViewer ) => {
console.log('Event name is:', docviewer.event.eventName);
}
Back to Documentation
Back to Home Page