Skip to content

Instantly share code, notes, and snippets.

@ripla
Created November 21, 2018 17:16
Show Gist options
  • Save ripla/155c76f01ebfc3bf5e121b0fccb0f711 to your computer and use it in GitHub Desktop.
Save ripla/155c76f01ebfc3bf5e121b0fccb0f711 to your computer and use it in GitHub Desktop.
Simple data in a vaadin-combo-box
<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