4.3.5 • Published 7 months ago

lesca-click v4.3.5

Weekly downloads
10
License
MIT
Repository
-
Last release
7 months ago

React React React React React NPM React NPM

Why use it?

use for prevent browser default behavior. usually used in web without scroll app.

Installation

$ npm install lesca-click --save

Demo

Live Demo

Usage

import Click from 'lesca-click';

Click.install();

Click.add('.target', (e) => {
  console.log('target clicked');
});

// find single className only
<div class='target'> // good
<div class='target on'> // bed

Methods

methodoptionstypedescriptiondefault
.install()installtrue
add(target, execution)targetstringselector => ".target" or "#target"
executionfunctioncall when target clicked
remove(target)targetstringselector => ".target" or "#target"
clear()clear all functions
setPreventDefault(value)valuebooleanset preventDefault enable or disable
addPreventExcept(target)targetstring".target" or "#target"

Features

  • maintain if necessary
4.3.5

7 months ago

4.3.4

7 months ago

4.3.3

7 months ago

4.3.2

1 year ago

4.3.1

2 years ago

4.2.2

2 years ago

4.3.0

2 years ago

4.1.0

2 years ago

4.2.1

2 years ago

4.2.0

2 years ago

4.1.1

2 years ago

3.0.0

2 years ago

4.0.4

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago