V1
EventFan ActiveReportsJS Class

EventFan Class

Type parameters

  • TArgs

Hierarchy

  • EventFan

Methods

register

  • Registers a new event handler. The handler is invoked when the cancellation is requested.

    Parameters

    • callback: function
        • (args: TArgs): any
        • Parameters

          • args: TArgs

          Returns any

    Returns UnregisterHandler

Static createFor

  • createFor(): object
  • Creates a cancellation token and the trigger function.

    Type parameters

    • TArgs

    Returns object

    • event: EventFan<TArgs>
    • trigger: function
        • (e: TArgs): void
        • Parameters

          • e: TArgs

          Returns void