Skip to content

Commit

Permalink
fix(chart-builder): refactor + read from value prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisbeth Berg committed Apr 23, 2024
1 parent a18eb4c commit 6dc4b46
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 171 deletions.
16 changes: 14 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@
</head>

<body>
<kvass-chart-selector></kvass-chart-selector>
<script type="module" src="/src/chart-selector/main.js"></script>
<kvass-chart-builder id="chart"></kvass-chart-builder>

<script type="module" src="/src/chart-builder/main.js"></script>
<script>
const fontSelector = document.getElementById('location')
const iconSelector = document.getElementById('icon')
const chartSelector = document.getElementById('chart')

console.log(chartSelector)

chartSelector.addEventListener('webcomponent:update', (event) => {
console.log(event.detail)
})
</script>
</body>
</html>
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6dc4b46

Please sign in to comment.