summaryrefslogtreecommitdiff
path: root/web/components/grid/index.ts
blob: 7faf6b1365f9694bbc6563c91038af27c842c792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import h, { type CreateElement } from "../../html";

class NotiveGridElement extends HTMLElement {
  foo: string;

  connectedCallback() {
    this.appendChild(h.p("OK: " + this.foo));
  }
}

customElements.define("ntv-grid", NotiveGridElement);

export default ((...args: any[]): NotiveGridElement =>
  (h as any)["ntv-grid"](...args)) as CreateElement<NotiveGridElement>;