https://github.com/bahrus/be-propagating
Creates a subscribable EventTarget, which watches for changes to a provided list of properties of the element it adorns, and the event target emits events with the same name every time the property value changes
https://github.com/bahrus/be-propagating
Last synced: 2 months ago
JSON representation
Creates a subscribable EventTarget, which watches for changes to a provided list of properties of the element it adorns, and the event target emits events with the same name every time the property value changes
- Host: GitHub
- URL: https://github.com/bahrus/be-propagating
- Owner: bahrus
- License: mit
- Created: 2022-09-10T13:18:49.000Z (over 2 years ago)
- Default Branch: baseline
- Last Pushed: 2024-05-20T21:04:16.000Z (about 1 year ago)
- Last Synced: 2024-05-20T23:15:29.054Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 465 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# be-propagating
be-propagating creates a subscribable EventTarget, which watches for changes to a provided list of properties of the element it adorns, and the event target emits events with the same name every time the property value changes.
## Lingo
In the examples below, we assume some-element is a custom element that has property setters myProp1, myProp2
## JSON Lingo
```html
```
The EventTarget object can be obtained from someElement.beEnhanced.bePropagating.propagator.