be-propagating
v0.0.58
Published
e-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
Downloads
90
Maintainers
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
<some-element be-propagating='
"propagate": ["myProp1", "myProp2"]
'></some-element>
The EventTarget object can be obtained from someElement.beEnhanced.bePropagating.propagator.