Interface DownloadAction.DownloadJs

All Superinterfaces:
JsSnippets, Serializable
Enclosing class:
DownloadAction

@JsDefinition public static interface DownloadAction.DownloadJs extends JsSnippets
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.

Since:
25.4
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • download

      @JsExpression("window.Vaadin.Flow.download.start($0(event, context), $1 ? $1(event, context) : undefined, event)") @JsFunctionParameterNames({"event","context"}) 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 URL
      filename - the input producing the suggested filename, or null for none
      Returns:
      the action function