Liking cljdoc? Tell your friends :D
ClojureScript only.

web.Clipboard

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.
raw docstring

readcljs

(read this)

Method.

The read() method of the web.Clipboard interface requests a of the clipboard's contents, delivering the data to the returned when the promise is resolved. Unlike web.readText(), the read() 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` interface requests a
of the clipboard's contents, delivering the data to the returned
when the promise is resolved. Unlike `web.readText()`, the read()
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`
sourceraw docstring

read-textcljs

(read-text this)

Method.

The web.Clipboard interface's readText() method returns a web.Promise resolves with a copy of the textual contents of 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` interface's readText() method returns a `web.Promise`
resolves with a copy of the textual contents of the system clipboard.

`var promise = navigator.clipboard.readText()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText`
sourceraw docstring

writecljs

(write this data-transfer)

Method.

The web.Clipboard method write() writes arbitrary data, such 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` method write() writes arbitrary data, such
images, to the clipboard.

`var promise = navigator.clipboard.write(dataTransfer)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write`
sourceraw docstring

write-textcljs

(write-text this new-clip-text)

Method.

The web.Clipboard interface's writeText() property writes the 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` interface's writeText() property writes the
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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close