tsdoc
    Preparing search index...

    Function addOnEvent

    • Register a callback for event handling.

      Usage:

      const statusUpdate = function statusUpdate(data) {
          // ...
      }
      

      faces.ajax.addOnEvent(statusUpdate);

      Implementation Requirements:

      This function must accept a reference to an existing JavaScript function. The JavaScript function reference must be added to a list of callbacks, making it possible to register more than one callback by invoking faces.ajax.addOnEvent more than once. This function must throw an error if the callback argument is not a function.

      Parameters

      • callback: Function

        a reference to a function to call on an event

      Returns void

      2.0