comparison demo/src/my-element.ts @ 89:4d19a94906d2

redo demo/ with vitejs (so nice)
author drewp@bigasterisk.com
date Wed, 12 Jan 2022 16:52:10 -0800
parents
children
comparison
equal deleted inserted replaced
88:ac7ad087d474 89:4d19a94906d2
1 import { html, css, LitElement } from "lit";
2 import { customElement } from "lit/decorators.js";
3 export { StreamedGraph } from "@bigasterisk/streamed-graph";
4
5 @customElement("my-element")
6 export class MyElement extends LitElement {
7 static styles = css`
8 :host {
9 }
10 `;
11
12 render() {
13 return html`
14 <h1>streamed-graph demo</h1>
15 <streamed-graph
16 url="/collector/graph/reposync"
17 view="repos.n3"
18 expanded="true"
19 ></streamed-graph>
20 `;
21 }
22 }
23
24 declare global {
25 interface HTMLElementTagNameMap {
26 "my-element": MyElement;
27 }
28 }