Constructor
new CopyToClipboard()
Properties:
Name | Type | Description |
---|---|---|
element |
string | ID of the element whose |
copied-lifetime |
number | number of milliseconds to wait before clearing the |
copying |
boolean | Set after a copy is initiated, but before it completes |
copied |
boolean | Set after a copy is completed successfully |
errored |
boolean | Set after a copy is fails |
- Source:
Fires:
- brut:copyfailed Fired when the copy fails to complete
Example
<pre><code id="code">dx/exec bin/setup</code></pre>
<brut-copy-to-clipboard element="code">
<button>Copy</button>
</brut-copy-to-clipboard>