https://github.com/basemax/copyclipboardjs
Tiny Library for copy text in clipboard.
https://github.com/basemax/copyclipboardjs
browser clipboard clipboard-javascript clipboard-javascript-library clipboard-js clipboard-manager clipboardjs copy copy-paste javascript javascript-lib javascript-library js js-library js-libs purejs
Last synced: about 2 months ago
JSON representation
Tiny Library for copy text in clipboard.
- Host: GitHub
- URL: https://github.com/basemax/copyclipboardjs
- Owner: BaseMax
- License: gpl-3.0
- Created: 2018-06-23T12:17:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T10:22:23.000Z (about 7 years ago)
- Last Synced: 2025-05-04T21:45:35.858Z (about 2 months ago)
- Topics: browser, clipboard, clipboard-javascript, clipboard-javascript-library, clipboard-js, clipboard-manager, clipboardjs, copy, copy-paste, javascript, javascript-lib, javascript-library, js, js-library, js-libs, purejs
- Language: JavaScript
- Size: 38.1 KB
- Stars: 20
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CopyClipboard
Tiny Library for copy text in clipboard. 
## Features
- Fast
- Compact
- No dependencies
- Event after copy (e.g :`AJAX`,send a GET request)## Arguments
| Argument Name | Goal |
| ------------- | ------------- |
| data-copy-text | Set Text |
| data-copy-from | Set target, to get the text from they |
| data-copy-after | Execute the code after copying |
| data-copy-link | Send GET Request to a link after copying |## Samples
To view the full details, run the [Example.html](https://github.com/BaseMax/CopyClipboardJs/blob/master/Example.html) file.
#### `data-copy-text`
```
Click , Copy!
```
#### `data-copy-from`
```
Enter Text :
Click , Copy!
```
#### `data-copy-after`
It will be completed in the future.#### `onclick`
```
Click , Copy text with onclick
```
```
Click , Copy from #id with onclick
```
```
Click , Copy text
```# License
CopyClipboard is licensed under the [GNU General Public License](https://github.com/BaseMax/CopyClipboardJs/blob/master/LICENSE).