Package com.vaadin.flow.component.download
@NullMarked
package com.vaadin.flow.component.download
Server-side API for delivering content to the browser from buttons and other
clickable components, either saved as a file or opened in a new browser tab.
Use
Download.onClick(component, handler) to make a click download the content of
a DownloadHandler or a
URL, and pass a DownloadTarget to open it in a new tab instead.
Downloads go through onClick rather than an ordinary server-side
click listener so that the download starts, or the tab opens, in the
browser's own click handler, inside the user gesture and without waiting for
a server round trip.
-
ClassDescriptionEntry point for delivering content to the browser from a click on a button or any other clickable component, either saved as a file or opened in a new browser tab:Where the browser puts the content of a
Download.