Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Commit

Permalink
Update demo-helpers to 2.2.0, add script to basic demo
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Dec 7, 2018
1 parent 42cc5dd commit 9267fd1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Expand Up @@ -37,7 +37,7 @@
"iron-demo-helpers": "^2.0.0",
"webcomponentsjs": "^1.0.0",
"web-component-tester": "^6.1.5",
"vaadin-demo-helpers": "vaadin/vaadin-demo-helpers#^2.0.0"
"vaadin-demo-helpers": "vaadin/vaadin-demo-helpers#^2.2.0"
},
"resolutions": {
"vaadin-element-mixin": "^2.0.0"
Expand Down
10 changes: 8 additions & 2 deletions demo/element-basic-demos.html
Expand Up @@ -8,9 +8,15 @@


<h3>Sample example</h3>
<vaadin-demo-snippet id="element-basic-demos-sample-example">
<vaadin-demo-snippet id="element-basic-demos-sample-example" when-defined="vaadin-element">
<template preserve-content>
<vaadin-element>Foobar</vaadin-element>
<vaadin-element></vaadin-element>
<script>
window.addDemoReadyListener('#element-basic-demos-sample-example', function(document) {
const element = document.querySelector('vaadin-element');
element.textContent = 'Foobar';
});
</script>
</template>
</vaadin-demo-snippet>

Expand Down

0 comments on commit 9267fd1

Please sign in to comment.