Class HammerInstance

Index

Constructor methods

Methods

Constructor methods

constructor(element: any, options?: HammerOptions): HammerInstance

Parameters

Returns

HammerInstance

Methods

public enable(toggle: boolean): HammerInstance

Parameters

  • toggle: boolean

Returns

HammerInstance

public off(gesture: string, handler: (event: HammerEvent) => void): HammerInstance

Parameters

  • gesture: string
  • handler: (event: HammerEvent) => void

Returns

HammerInstance

public on(gesture: string, handler: (event: HammerEvent) => void): HammerInstance

Parameters

  • gesture: string
  • handler: (event: HammerEvent) => void

Returns

HammerInstance

public trigger(gesture: string, eventData: HammerGestureEventData): HammerInstance

Parameters

Returns

HammerInstance