v2.0.0-alpha1 – Polymer 2.0 support
Changes
- Polymer 2.0 support
- Manual upload triggering added (thanks to @stramel!)
no-auto
can be set to disable the automatic uploadinguploadFiles()
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 ↗
- slot
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
- Available slots currently are:
- 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>