Liking cljdoc? Tell your friends :D
ClojureScript only.

web.clipboard.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.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`
sourceraw docstring

read-textcljs

(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`
sourceraw docstring

writecljs

(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`
sourceraw docstring

write-textcljs

(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`
sourceraw docstring

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

× close