i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > app > IApplicationEvents > addEventListener

    app.IApplicationEvents.addEventListener() method

    Adds an event listener. See app.ApplicationEventMap for the available events.

    Signature:

    addEventListener<K extends keyof ApplicationEventMap>(type: K, listener: ApplicationEventMap[K], options?: ApplicationEventOptionsMap[K]): () => void;
    

    Introduced: version 1.0

    Type Parameters

    Parameter Type Description
    K extends keyof ApplicationEventMap The type of event to subscribe to.

    Parameters

    Parameter Type Description
    type K The type of event to subscribe to.
    listener ApplicationEventMap[K] A function to handle the event.
    options ApplicationEventOptionsMap[K] (Optional) An object that controls the behavior of the listener.

    Returns:

    () => void

    A function that can be called to remove the listener.

    In this article
    Back to top © N. Harris Computer Corporation