@leanup/cli-vanilla
Version:
This package contains the VanillaJS extension for the @leanup/cli.
18 lines (14 loc) • 403 B
text/typescript
export class VanillaComponent extends HTMLElement {
protected readonly dom: HTMLElement | ShadowRoot;
public constructor() {
super();
this.dom = this;
// this.attachShadow({ delegatesFocus: true, mode: 'open' });
// this.dom = this.shadowRoot;
}
// tslint:disable-next-line: no-empty
protected render(): void {}
public connectedCallback(): void {
this.render();
}
}