view index.html @ 94:a5f53d397526

view: pick types to show at top-level
author drewp@bigasterisk.com
date Wed, 12 Jan 2022 22:09:20 -0800
parents 0c188ed3bcd8
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>