Compare commits

...

3 Commits
v1.7.1 ... 2.0

Author SHA1 Message Date
Lucas Bento
0c3bce265f Fix GitHub Primer tooltips link (#479) 2017-10-16 07:25:57 -07:00
Zeno Rocha
3c0dfe5a38 Adds docs on tooltips #423 2017-06-30 16:30:30 -03:00
Nathan
f960b0d20a use only ID name for DOM (#431) 2017-06-30 15:52:07 -03:00

View File

@@ -119,7 +119,13 @@ clipboard.on('error', function(e) {
});
```
For a live demonstration, open this [site](https://clipboardjs.com/) and just your console :)
For a live demonstration, go to this [site](https://clipboardjs.com/) and open your console.
## Tooltips
Each application has different design needs, that's why clipboard.js does not include any CSS or built-in tooltip solution.
The tooltips you see on the [demo site](https://clipboardjs.com/) were built using [GitHub's Primer](https://github.com/primer/primer-css/tree/master/modules/primer-tooltips). You may want to check that out if you're looking for a similar look and feel.
## Advanced Options
@@ -149,7 +155,7 @@ For use in Bootstrap Modals or with any other library that changes the focus you
```js
new Clipboard('.btn', {
container: document.getElementById('#modal')
container: document.getElementById('modal')
});
```