The Clipboard interface implements the Clipboard API, providing—if user grants permission—both read and write access to the contents the system clipboard.
The Clipboard interface implements the Clipboard API, providing—if user grants permission—both read and write access to the contents the system clipboard.
(read this)
Method.
The read() method of the web.clipboard.Clipboard
interface
a copy of the clipboard's contents, delivering the data to the
js.Promise
when the promise is resolved. Unlike readText()
,
read() method can return arbitrary data, such as images.
var promise = navigator.clipboard.read();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read
Method. The read() method of the `web.clipboard.Clipboard` interface a copy of the clipboard's contents, delivering the data to the `js.Promise` when the promise is resolved. Unlike `readText()`, read() method can return arbitrary data, such as images. `var promise = navigator.clipboard.read();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read`
(read-text this)
Method.
The web.clipboard.Clipboard
interface's readText() method returns
js.Promise
which resolves with a copy of the textual contents
the system clipboard.
var promise = navigator.clipboard.readText()
See also: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText
Method. The `web.clipboard.Clipboard` interface's readText() method returns `js.Promise` which resolves with a copy of the textual contents the system clipboard. `var promise = navigator.clipboard.readText()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText`
(write this data-transfer)
Method.
The web.clipboard.Clipboard
method write() writes arbitrary
such as images, to the clipboard.
var promise = navigator.clipboard.write(dataTransfer)
See also: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write
Method. The `web.clipboard.Clipboard` method write() writes arbitrary such as images, to the clipboard. `var promise = navigator.clipboard.write(dataTransfer)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write`
(write-text this new-clip-text)
Method.
The web.clipboard.Clipboard
interface's writeText() property
the specified text string to the system clipboard.
var promise = navigator.clipboard.writeText(newClipText)
See also: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText
Method. The `web.clipboard.Clipboard` interface's writeText() property the specified text string to the system clipboard. `var promise = navigator.clipboard.writeText(newClipText)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close