Skip to content

Commit

Permalink
Add document for container option
Browse files Browse the repository at this point in the history
Close #33
  • Loading branch information
Inndy committed Jun 13, 2018
1 parent 3e0eb1c commit 1befe74
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ Before using this feature, read:
[this issue](https://github.com/zenorocha/clipboard.js/issues/218) and
[this page](https://github.com/zenorocha/clipboard.js/wiki/Known-Limitations) first.

## It doesn't work with bootstrap modals

See [clipboardjs](https://clipboardjs.com/#advanced-usage) document and [this pull request](https://github.com/Inndy/vue-clipboard2/pull/23), `container` option is available like this:

```js
let container = this.$refs.container
this.$copyText("Text to copy", container)
```

## Sample

```html
Expand Down

0 comments on commit 1befe74

Please sign in to comment.