UNPKG

@netvlies/wsc-js-moduleloader

Version:

module loader to be imported in skeletons

21 lines (14 loc) 290 B
class Base extends HTMLElement { query(selector, el = this) { return el.querySelector(selector); } queryAll(selector, el = this) { return Array.from(el.querySelectorAll(selector)); } render(index) { // Call init this.init(index); return this; } } export default Base;