2.1.3 • Published 6 years ago

@munchkinhalfling/chandler v2.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

chandler

a utility for inline event listeners (Shadow DOM)

Example

import eventHandler, {htmlEvents} from '@munchkinhalfling/chandler';
class MyElement extends HTMLElement {
  ...
  render() {
    this.shadowRoot.innerHTML = htmlEvents(true)`
...
<button onclick=${this.evt}>Test</button>
...
`;
  }
  evt() { // 'this' is correctly bound to the custom element instance
    ...
  }
}
2.1.2

6 years ago

2.1.3

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.4

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago