mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Adds documentation about #355
This commit is contained in:
parent
ceb5df2646
commit
c1ea8a321b
@ -210,6 +210,8 @@ clipboard.destroy();</code></pre>
|
||||
</ul>
|
||||
|
||||
<p>The good news is that clipboard.js gracefully degrades if you need to support older browsers. All you have to do is show a tooltip saying <code>Copied!</code> when <code>success</code> event is called and <code>Press Ctrl+C to copy</code> when <code>error</code> event is called because the text is already selected.</p>
|
||||
|
||||
<p>You can also check if clipboard.js is supported or not by running <code>Clipboard.isSupported()</code>, that way you can hide copy/cut buttons from the UI.</p>
|
||||
</main>
|
||||
|
||||
<footer class="footer gradient text-center">
|
||||
|
Loading…
x
Reference in New Issue
Block a user