Created
November 21, 2018 17:16
-
-
Save ripla/155c76f01ebfc3bf5e121b0fccb0f711 to your computer and use it in GitHub Desktop.
Simple data in a vaadin-combo-box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="bower_components/polymer/polymer.html"> | |
<link rel="import" href="bower_components/vaadin-combo-box/src/vaadin-combo-box.html"> | |
<dom-module id="test-design"> | |
<template> | |
<vaadin-combo-box id="myCombo"></vaadin-combo-box> | |
</template> | |
<script> | |
class TestDesign extends Polymer.Element { | |
static get is() { | |
return 'test-design'; | |
} | |
connectedCallback() { | |
super.connectedCallback(); | |
this.$.myCombo.items = ['Banana', 'Apple', 'Strawberry']; | |
} | |
static get properties() { | |
return { | |
}; | |
} | |
} | |
customElements.define(TestDesign.is, TestDesign); | |
</script> | |
</dom-module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment