Version 1
Common Class Event GrapeCity DataViewsJS Class

Event Class

Represents an event.

DataViews events are similar to .NET events. Any class may define events by declaring them as fields. Any class may subscribe to events using the Event.addHandler method, or unsubscribe using the Event.removeHandler method.

Event handlers take one parameter: args. It is an object that contains the the event parameters.

Type parameters

  • TArgs

Heirarchy

  • Event

Methods

addHandler

  • addHandler(handler: EventHandler<TArgs>): (Anonymous function)
  • Registers specified event handler

    Parameters

    Returns (Anonymous function)

contains

  • Determines whether given event handler is already registered

    Parameters

    Returns boolean

raise

  • raise(args: TArgs): void
  • Invokes all event handlers subscribed on the event

    Parameters

    • args: TArgs

      event args

    Returns void

removeHandler

  • Unregisters specified event handler

    Parameters

    • handler: EventHandler<TArgs>

      an event handler to unregister

    Returns void