Mercurial > code > home > repos > streamed-graph
view index.html @ 79:0c188ed3bcd8
starting lit upgrade. total mess right now
author | drewp@bigasterisk.com |
---|---|
date | Wed, 17 Nov 2021 13:01:08 -0800 |
parents | b8e5850acca0 |
children | faf7e432f089 |
line wrap: on
line source
<!DOCTYPE html> <html> <body> <h1>streamed-graph demo</h1> <script type="module" src="./build/demo.js"></script> <template> <streamed-graph url="http://bang:9075/graph/events" expanded="true" ></streamed-graph> </template> new style: <div id="demo"></div> <script type="module"> import { html, render } from 'lit'; import '../dist/src/graph-view.js'; const title = 'Hello owc World!'; render( html` <graph-view .title=${title}> some light-dom </graph-view> `, document.querySelector('#demo') ); </script> </body> </html>