i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > commands > IRecordsContextEvents > addEventListener

    commands.IRecordsContextEvents.addEventListener() method

    Adds an event listener for changes to the records in a particular context.

    Signature:

    addEventListener(type: 'recordscontextchange', listener: RecordsContextChangeListener, options?: app.ISubscriptionOptions): () => void;
    

    Introduced: version 1.0

    Parameters

    Parameter Type Description
    type 'recordscontextchange' The type of event to subscribe to.
    listener RecordsContextChangeListener A function to handle the event.
    options app.ISubscriptionOptions (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