Class: Instance

Instance

new Instance

create new hammer instance all methods should return the instance itself, so it is chainable.

Parameters:
Name Type Argument Default Description
element HTMLElement
options Object <optional>
{}
Source:
  • ../js/jheatmap-1.0.0.js, line 4981
Returns:
Type
Hammer.Instance

Methods

enable

enable of disable hammer.js detection

Parameters:
Name Type Description
state Boolean
Source:
  • ../js/jheatmap-1.0.0.js, line 5075
Returns:
Type
Hammer.Instance

off

unbind events to the instance

Parameters:
Name Type Description
gesture String
handler Function
Source:
  • ../js/jheatmap-1.0.0.js, line 5037
Returns:
Type
Hammer.Instance

on

bind events to the instance

Parameters:
Name Type Description
gesture String
handler Function
Source:
  • ../js/jheatmap-1.0.0.js, line 5022
Returns:
Type
Hammer.Instance

trigger

trigger gesture event

Parameters:
Name Type Description
gesture String
eventData Object
Source:
  • ../js/jheatmap-1.0.0.js, line 5052
Returns:
Type
Hammer.Instance