Skip to content

Clipboard

util.clipboard : object

OS clipboard

Kind: static namespace of util

clipboard.copy(text, [showNotification]) ⇒ Promise.<boolean>

Copy a string to the system clipboard.

Kind: static method of clipboard
Returns: Promise.<boolean> - True if the copy succeeded, else false.

Param Type Default Description
text string
[showNotification] boolean false If true, a "Copied" notification will appear onscreen briefly.