Skip to content

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

License

Notifications You must be signed in to change notification settings

bahrus/be-propagating

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published