Skip to content

v2.0.0 — Stable Polymer 2.0 Hybrid Release

Compare
Choose a tag to compare
@manolo manolo released this 14 Jul 12:36
· 322 commits to master since this release

Live Demo →
API Documentation →

No changes since v2.0.0-beta1.

Breaking changes since v1.1.4:

  • To provide custom elements, slots are now used instead of classes

    • Available slots currently are: add-button, file-list, drop-label, drop-label-icon
  • Customizing the drop label icon needs to be placed outside the drop label with its own slot

    <!-- 1.x -->
    <vaadin-upload>
      <div class="drop-label">
        <iron-icon icon="cloud-upload"></iron-icon>
        Drop files
      </div>
    </vaadin-upload>
    
    <!-- 2.0 -->
    <vaadin-upload>
      <iron-icon slot="drop-label-icon" icon="cloud-upload"></iron-icon>
      <span slot="drop-label">Drop files</span>
    </vaadin-upload>

Changes since v1.1.4:

  • Polymer 2.0 support
    • Depends on polymer on ^2.0.0 by default
    • Dependencies changed to ^2.0.0
  • Manual upload triggering added (thanks to @stramel!)
    • no-auto can be set to disable the automatic uploading
    • uploadFiles() is then called to initiate uploading of the queued files
  • Customizing upload button added (thanks to @stramel!)
    • slot add-button can be used to replace the default button
  • Restore file element state before removal (#199)
  • Disallow opening file dialog when max files reached (#197)
  • Remove extra parameter from _setStatus call (#195)