![made in Taiwan](https://img.shields.io/badge/Made%20in-Taiwan-orange)
Installation
$ npm install lesca-click --save
Usage
import Click from 'lesca-click';
Click.install(true, true);
Click.add('.target', (e) => {
console.log('target clicked');
});
Methods
method | options | description | default |
---|
install(clickEventAlso, install) | clickEventAlso | click event combine also | true |
| install | set on window.Click | true |
add(target, execution) | target | selector => ".target" or "#target" | |
| execution | call when target clicked | |
remove(target) | target | selector => ".target" or "#target" | |
clear() | | clear all functions | |
setPreventDefault(value) | value | is set preventDefault | |
addPreventExcept(DOM-query) | DOM-query | .target or #target | |