Skip to content

v2.0.0-alpha1 – Polymer 2.0 support

Compare
Choose a tag to compare
@Saulis Saulis released this 25 Apr 12:27
· 341 commits to master since this release

Live Demos ↗

Changes

  • Polymer 2.0 support
  • 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
    • Live Demo ↗
  • Customizing upload button added (thanks to @stramel!)
    • slot add-button can be used to replace the default button
    • Live Demo ↗

Breaking Changes

  • 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>