Interface WriteToClipboardAction.WriteToClipboardJs

All Superinterfaces:
Serializable
Enclosing class:
WriteToClipboardAction

@JsDefinition public static interface WriteToClipboardAction.WriteToClipboardJs extends Serializable
How the clipboard is written, 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
    An action that writes the values of the given inputs to the clipboard, skipping each one that returns null.
  • Method Details

    • writeToClipboard

      @JsExpression("return window.Vaadin.Flow.clipboard.writePayload($0(event), $1(event), $2(event))") @JsFunctionParameterNames("event") JsFunction writeToClipboard(JsFunction text, JsFunction html, JsFunction image)
      An action that writes the values of the given inputs to the clipboard, skipping each one that returns null.
      Parameters:
      text - the input producing the text/plain payload
      html - the input producing the text/html payload
      image - the input producing the source <img> of the image/png payload
      Returns:
      the action function, which returns the promise of the write