Skip to content

v2.0.0-alpha1 – Polymer 2.0 Support

Compare
Choose a tag to compare
@Saulis Saulis released this 05 May 11:55
· 776 commits to master since this release

Live Demo

Changes:

  • Polymer 2.0 Hybrid Support

Breaking Changes:

  • Dependencies need to be 2.0-preview or later when running your app both in Polymer 1.x or 2.0
  • Prefix and Suffix elements are now defined using slot instead of class
<!-- 1.x -->
<vaadin-combo-box>
  <div class="prefix">My Prefix</div>
  <div class="suffix">My Suffix</div>
</vaadin-combo-box>

<!-- 2.0 -->
<vaadin-combo-box>
  <div slot="prefix">My Prefix</div>
  <div slot="suffix">My Suffix</div>
</vaadin-combo-box>
  • Clear and Toggle icons are now defined using slot instead of class
    • Changes don't apply to <vaadin-combo-box-light> which still uses classes!
<!-- 1.x -->
<vaadin-combo-box>
  <paper-icon-button icon="remove-circle" class="clear-button"></paper-icon-button>
  <paper-icon-button icon="search" class="toggle-button"></paper-icon-button>
</vaadin-combo-box>

<!-- 2.0 -->
<vaadin-combo-box>
  <paper-icon-button icon="remove-circle" slot="clear-button"></paper-icon-button>
  <paper-icon-button icon="search" slot="toggle-button"></paper-icon-button>
</vaadin-combo-box>