• Binds the specified function to an event, so that the function gets called whenever the event fires on the object

    Type Parameters

    • T

    Parameters

    • target: T
    • eventName: string

      String that specifies any of the standard DHTML Events without "on" prefix, if may also include an optional (dot "." prefixed) namespaces "click" "click.mynamespace" in addition to specific namespaces.

    • handlerRef: any

      Pointer that specifies the function to call when event fires

    • Optional evtNamespace: string | string[]

      [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace, if the eventName also includes a namespace the namespace(s) are merged into a single namespace

    • Optional useCapture: boolean

      [Optional] Defaults to false

    Returns boolean

    True if the function was bound successfully to the event, otherwise false

Generated using TypeDoc