mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Adds docs for #24
This commit is contained in:
parent
eb2fa8129e
commit
5bac064b52
@ -154,6 +154,11 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
}
|
||||
});</code></pre>
|
||||
|
||||
<p>Also, with are working with single page apps, you may want to manage the lifecycle of the DOM more precisely. Here's how you clean up the events and objects that we create.</p>
|
||||
|
||||
<pre><code class="js">var clipboard = new Clipboard('.btn');
|
||||
clipboard.destroy();</code></pre>
|
||||
|
||||
<h1 id="events">Events</h1>
|
||||
|
||||
<p>There are cases where you'd like to show some user feedback or capture what has been selected after a copy/cut operation.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user