Skip to content

brunocarvalhodearaujo/html-element-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTMLElementWatch

check changes in HTML elements and execute an trigger

How to use

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

About

check changes in HTML elements and execute an trigger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages