Created
August 27, 2019 09:09
-
-
Save rowan-m/ec681fb90e8c1117f57b062fa9e6165c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InputKnob extends HTMLElement { | |
constructor() { | |
super(); | |
this.attachShadow({ mode: 'open' }); | |
this.shadowRoot.appendChild(template.content.cloneNode(true)); | |
this._container = this.shadowRoot.getElementById('container'); | |
} // ✂️ rest of the class omitted | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment