Interface DownloadAction.DownloadJs

All Superinterfaces:
Serializable
Enclosing class:
DownloadAction

@JsDefinition public static interface DownloadAction.DownloadJs extends Serializable
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 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), $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 URL
      filename - the input producing the suggested filename, or null for none
      Returns:
      the action function