Need help with vue-clipboards?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

zhuowenli
203 Stars 33 Forks MIT License 88 Commits 2 Opened issues

Description

📋 Vue2.0 directive to copy or cut text to clipboard.

Services available

!
?

Need anything else?

Contributors list

# 159,128
Chrome ...
Sass
HTML
vue2
49 commits
# 15,058
JavaScr...
React
google-...
dropbox
3 commits
# 408,635
nuxt-mo...
Nuxt.js
PWA
axios
2 commits
# 1,213
JavaScr...
GitHub
Angular
Vanilla...
1 commit
# 818
GitHub
rust-la...
wechat-...
query-l...
1 commit

vue-clipboards

📋 Vue2.0 directive to copy or cut text to clipboard.

DEMO: https://zhuowenli.github.io/vue-clipboards/

Install

$ npm install vue-clipboards

Usage

import VueClipboards from 'vue-clipboards';

Vue.use(VueClipboards);

new Vue({ data() { return { copyData: 'copy data' } } });

Copy

Event

Copy
import VueClipboards from 'vue-clipboards';

Vue.use(VueClipboards);

new Vue({ data() { return { copyData: 'copy data' } }, methods: { handleSuccess(e) { console.log(e); }, handleError(e) { console.log(e); }, } });

Development

  • yarn dev
    : Run example in development mode
  • yarn deploy
    : Deploy example to gh-pages
  • yarn build
    : Build component in umd & es format
  • yarn watch
    : Build component in umd & es format with watch mode

Check out your npm scripts, it's using vbuild under the hood.


Generated by create-vue-app

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.