be-propagating
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

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.

Package Sidebar

Install

npm i be-propagating

Weekly Downloads

18

Version

0.0.37

License

MIT

Unpacked Size

7.75 kB

Total Files

6

Last publish

Collaborators

  • bahrus