Logo

    Home

    Documentation

    Use Cases

    Training

    Applications

    Release Notes

    Event name in eventDocCallback

    Event name in eventDocCallback

    • Description
    • Attributes
    • How to use it

    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:

    image

    $ 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 DocumentationDocumentation

    Back to Home Page

    Logo