Home Reference Source Test
public class | source

Binding

Responsible for creating a binding between an element and a gesture.

Test:

Constructor Summary

Public Constructor
public

constructor(element: Element, gesture: Gesture, handler: Function, capture: Boolean, bindOnce: Boolean)

Constructor function for the Binding class.

Member Summary

Public Members
public

A boolean flag used for the bindOnce syntax.

public

A boolean signifying if the event is to be emitted during the capture or bubble phase.

public

The element to associate the gesture to.

public

A instance of the Gesture type.

public

The function handler to execute when a gesture is recognized on the associated element.

Public Constructors

public constructor(element: Element, gesture: Gesture, handler: Function, capture: Boolean, bindOnce: Boolean) source

Constructor function for the Binding class.

Params:

NameTypeAttributeDescription
element Element

The element to associate the gesture to.

gesture Gesture

A instance of the Gesture type.

handler Function

The function handler to execute when a gesture is recognized on the associated element.

capture Boolean
  • optional
  • default: false

A boolean signifying if the event is to be emitted during the capture or bubble phase.

bindOnce Boolean
  • optional
  • default: false

A boolean flag used for the bindOnce syntax.

Public Members

public bindOnce: Boolean source

A boolean flag used for the bindOnce syntax.

public capture: Boolean source

A boolean signifying if the event is to be emitted during the capture or bubble phase.

public element: Element source

The element to associate the gesture to.

public gesture: Gesture source

A instance of the Gesture type.

public handler: Function source

The function handler to execute when a gesture is recognized on the associated element.