A flexible modern events js plugin.
npm install @pluginjs/events
events is a utility JavaScript library for dom event interface.
#### Yarn
``javascript`
yarn add @pluginjs/events
#### NPM
`javascript`
npm i @pluginjs/events
CDN:
Development:
`html`
Production:
`html`
Parameters
| Name | Type | Description |
|||-|
| event | String or CustomEvent | evnetName or customEvent |String or PlainObject
| [ extraParams ] | | one or more or null |HTMLElement
| element | | |
Parameters
| Name | Type | Description |
|||-|
| events | String | One or more space-separated event types and optional namespaces |String
| [ selector ] | | |Function
| callback | | |HTMLElement
| element | | |
Returns
| Name | Type | Description |
|||-|
| element | HTMLElement | |
Parameters
| Name | Type | Description |
|||-|
| events | String | One or more space-separated event types and optional namespaces |String
| [ selector ] | | |Function
| callback | | |HTMLElement
| element | | |
Returns
| Name | Type | Description |
|||-|
| element | HTMLElement | |
Parameters
| Name | Type | Description |
|||-|
| events | String | One or more space-separated event types and optional namespaces |String
| [ selector ] | | |Function
| callback | | |HTMLElement
| element | | |
Returns
| Name | Type | Description |
|||-|
| element | HTMLElement | |
Parameters
| Name | Type | Description |
|||-|
| element | HTMLElement | |
Returns
| Name | Type | Description |
|||-|
| eventEmitter | EventEmitter` | |
Tested on all major browsers.
|
IE / Edge |
Firefox |
Chrome |
Safari |
Opera |
| --------- | --------- | --------- | --------- | --------- |
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions|
@pluginjs/events is Licensed under the GPL-v3 license.
If you want to use @pluginjs/events project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.
For purchase an Commercial License, contact us purchase@thecreation.co.
Copyright (C) 2022 Creation Studio Limited.