Adds a list of event handlers to an element. events is a dictionary of event handlers.
Event names should not include the "on" prefix.
Namespace:
C1.Web.iPhoneAssembly: C1.Web.iPhone.Client (in C1.Web.iPhone.Client.dll)
Syntax
JavaScript |
---|
C1.Web.iPhone.TouchEventDispatcher.addHandlers = function(element, events); |
Parameters
- element
- Type: DOMElement
The element.
- events
- Type: Dictionary
The dictionary with events handlers.
Examples
C1.Web.iPhone.TouchEventDispatcher.addHandlers($get("elementId"), {touchstart: onTouchStart, touchmove: onTouchMove, touchend: onTouchEnd });
function onTouchStart(e){ ... }
function onTouchMove(e){ ... }
function onTouchEnd(e){ ... }