UNPKG

json-object-editor

Version:

JOE the Json Object Editor | Platform Edition

30 lines (26 loc) 673 B
class CappView extends HTMLElement { constructor() { super(); } static get observedAttributes() { return []; } connectedCallback() { var self = this; // create a simple instance // by default, it only adds horizontal recognizers self.addEventListener('click',function(){ capp.special.joeicon(false); }) } render() { var atts = _joe.Components.getAttributes(this); } attributeChangedCallback(attr, oldValue, newValue) { this.render(); } disconnectedCallback() {} } // window.addEventListener('load', function(){ window.customElements.define("capp-view", CappView); // })