Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-dom-event
Dom event api based on next toolkit.
https://github.com/afeiship/next-dom-event
dom event next on
Last synced: 3 months ago
JSON representation
Dom event api based on next toolkit.
- Host: GitHub
- URL: https://github.com/afeiship/next-dom-event
- Owner: afeiship
- License: mit
- Created: 2017-03-31T06:02:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-18T14:00:20.000Z (6 months ago)
- Last Synced: 2024-10-06T22:25:03.275Z (4 months ago)
- Topics: dom, event, next, on
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-dom-event
> Dom event api based on next toolkit.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-dom-event
```## apis
| api | params | description |
| --- | ------ | -------------------- |
| on | - | register a new event |## usage
```js
import NxDomEvent from '@jswork/next-dom-event';//create resources:
const el = document.getElement('test1');
const res = NxDomEvent.on(el,'click',()=>{
console.log('click!');
},capture);
res.destory();
```## license
Code released under [the MIT license](https://github.com/afeiship/next-dom-event/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-dom-event
[version-url]: https://npmjs.org/package/@jswork/next-dom-event[license-image]: https://img.shields.io/npm/l/@jswork/next-dom-event
[license-url]: https://github.com/afeiship/next-dom-event/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-dom-event
[size-url]: https://github.com/afeiship/next-dom-event/blob/master/dist/next-dom-event.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-dom-event
[download-url]: https://www.npmjs.com/package/@jswork/next-dom-event