Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunocarvalhodearaujo/html-element-watch
check changes in HTML elements and execute an trigger
https://github.com/brunocarvalhodearaujo/html-element-watch
element html trigger watch
Last synced: 9 days ago
JSON representation
check changes in HTML elements and execute an trigger
- Host: GitHub
- URL: https://github.com/brunocarvalhodearaujo/html-element-watch
- Owner: brunocarvalhodearaujo
- Created: 2017-05-25T17:17:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-26T16:02:46.000Z (over 7 years ago)
- Last Synced: 2024-02-13T07:41:03.378Z (9 months ago)
- Topics: element, html, trigger, watch
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTMLElementWatch
================check changes in HTML elements and execute an trigger
## How to use
```````js
import { HTMLElementWatch } from 'html-element-watch'
const selector = document.querySelector('body > .container')
const watcher = new HTMLElementWatch(selector)watcher.on('ADDED', target => console.log('added', target))
watcher.on('ADDED', target => console.log('removed', target))
watcher.start() // start monitor
watcher.stop() // stop monitor
```````