mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Document the browser restriction for a valid element
This commit is contained in:
parent
72926580c3
commit
033aceb114
@ -141,6 +141,8 @@ new Clipboard('.btn', {
|
||||
});
|
||||
```
|
||||
|
||||
*Note: Due to [browser restrictions](https://github.com/zenorocha/clipboard.js/issues/127#issuecomment-156219577), it is required that the first argument refer to a valid element in the page.*
|
||||
|
||||
If you want to dynamically set a `text`, you'll return a String.
|
||||
|
||||
```js
|
||||
|
Loading…
Reference in New Issue
Block a user