Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
Last change: October 4, 2019
Current version: 1.5.4
The module response to a DOM event, ie a click or hover, and sends the event data to the callback function.
webanizr.collect('domEvent', parameters, callback)
The callApi module the following parameters:
The type of event what should trigger the module. The following options are supported:
The query selector that points to the elements where the module should attach listeners for events to. Examples:
Setting an id on an event prevents it from being assigned multiple times to the same node. The value of this parameter should only consists of letters and numbers. It also is needed if you want to remove this event.
If the id__debounce is set, it waits for 500 miliseconds before it triggers the event. If the event is triggered before the 500 miliseconds are over, the counter resets and the module waits another 500 miliseconds. This helps triggering the event to many times, i.e. with the keyup in a textfield when someone is typing. The id__debounce should have an unique value for each assigned event.
If set to true, the event will be removed instead of added. It requires the same parameters used when adding the event, including the type__event and id__event.
This callback function is called when the DOM event is fired. The data of the event is send to the callback function. The data contains the following attriutes:
https://cdn.cpmodules.webanizr.com/demo/dom-events/index.html