furo-put-clipboard #
@furo/util v2.1.19
import '@furo/util/src/furo-put-clipboard.js';
exports FuroPutClipboard js
exports <furo-put-clipboard>
custom-element-definition
superclass LitElement
summary write content to clipboard
furo-put-clipboard
put content to the clipboard of the OS.
|
|
Attributes and Properties #
json #
json
Boolean
Stringify JSON content. Set this to true to auto stringify your JSON object with a 2 indention.
Events #
content-put #
at-content-put
→ *
Fired when content is written to clipboard
Methods #
setData #
setData(data Object
) ⟹ void
Object
→
fn-set-data
Set data that you want to put to clipboard.
- data Serializable data to put
trigger #
trigger(data Object|null
) ⟹ void
Object|null
→
fn-trigger
Write data to the clipboard
If you trigger without data, the data which sas set with setData
will be written to the clipboard.
- data Serializable data