Interface DownloadAction.DownloadJs
- All Superinterfaces:
Serializable
- Enclosing class:
DownloadAction
How a download is started, as a snippet for
JsSnippets.of(Class).
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptiondownload(JsFunction url, @Nullable JsFunction filename) An action that downloads from the URL of an input, next to the element the event of the trigger happened on.
-
Method Details
-
download
@JsExpression("window.Vaadin.Flow.download.start($0(event), $1 ? $1(event) : undefined, event)") @JsFunctionParameterNames("event") JsFunction download(JsFunction url, @Nullable JsFunction filename) An action that downloads from the URL of an input, next to the element the event of the trigger happened on.- Parameters:
url- the input producing the URLfilename- the input producing the suggested filename, ornullfor none- Returns:
- the action function
-