Mercurial > code > home > repos > streamed-graph
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demo/src/my-element.ts Wed Jan 12 16:52:10 2022 -0800 @@ -0,0 +1,28 @@ +import { html, css, LitElement } from "lit"; +import { customElement } from "lit/decorators.js"; +export { StreamedGraph } from "@bigasterisk/streamed-graph"; + +@customElement("my-element") +export class MyElement extends LitElement { + static styles = css` + :host { + } + `; + + render() { + return html` + <h1>streamed-graph demo</h1> + <streamed-graph + url="/collector/graph/reposync" + view="repos.n3" + expanded="true" + ></streamed-graph> + `; + } +} + +declare global { + interface HTMLElementTagNameMap { + "my-element": MyElement; + } +}