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 TypeMethodDescriptionwriteToClipboard(JsFunction text, JsFunction html, JsFunction image) An action that writes the values of the given inputs to the clipboard, skipping each one that returnsnull.
-
Method Details
-
writeToClipboard
@JsExpression("return window.Vaadin.Flow.clipboard.writePayload($0(event, context), $1(event, context), $2(event, context))") @JsFunctionParameterNames({"event","context"}) 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 returnsnull.- Parameters:
text- the input producing thetext/plainpayloadhtml- the input producing thetext/htmlpayloadimage- the input producing the source<img>of theimage/pngpayload- Returns:
- the action function, which returns the promise of the write
-