All Projects β†’ egoist β†’ v-copy

egoist / v-copy

Licence: other
Vue directive to copy to clipboard. (1kB)

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to v-copy

Clipboard Polyfill
πŸ“‹ Simple copying on the web, with maximum browser compatibility.
Stars: ✭ 748 (+750%)
Mutual labels:  clipboard, copy
Clipboard Copy
Lightweight copy to clipboard for the web
Stars: ✭ 443 (+403.41%)
Mutual labels:  clipboard, copy
netflix-list-exporter
πŸ’«β€Žβ€Žβ€Žβ€β€β€Žβ€An Extension to export your lists from Netflix to Clipboard area and share it with your friends.
Stars: ✭ 60 (-31.82%)
Mutual labels:  clipboard, copy
Piknik
Copy/paste anything over the network.
Stars: ✭ 2,221 (+2423.86%)
Mutual labels:  clipboard, copy
Vue Clipboard2
A simple vue2 binding to clipboard.js
Stars: ✭ 1,617 (+1737.5%)
Mutual labels:  clipboard, copy
Copy To Clipboard
βœ‚οΈ Modern copy to clipboard. No Flash.
Stars: ✭ 39 (-55.68%)
Mutual labels:  clipboard, copy
Gotem
Copy to clipboard for modern browsers in less than 1kb.
Stars: ✭ 439 (+398.86%)
Mutual labels:  clipboard, copy
Copy Paths To Clipboard
Copy paths in a variety of formats to the clipboard with Alfred
Stars: ✭ 83 (-5.68%)
Mutual labels:  clipboard, copy
Xcv
βœ‚οΈ Cut, Copy and Paste files with Bash
Stars: ✭ 144 (+63.64%)
Mutual labels:  clipboard, copy
MagicWE2
[MagicWE2] Lag free asynchronous world editor for PMMP with plenty of options
Stars: ✭ 109 (+23.86%)
Mutual labels:  clipboard, copy
vue-body-scroll-lock
A Vue directive to lock the body scroll without stopping the target element from scrolling.
Stars: ✭ 30 (-65.91%)
Mutual labels:  directive
secure-pbcopy
pbcopy(1) replacement that marks data as confidential
Stars: ✭ 18 (-79.55%)
Mutual labels:  clipboard
cb
Command line interface to manage clipboard
Stars: ✭ 69 (-21.59%)
Mutual labels:  clipboard
v-drag-drop
Minimalistic drag & drop directives for Vue.js
Stars: ✭ 17 (-80.68%)
Mutual labels:  directive
cookie-extraction
η™»ε½•εŽζε–εœ¨ηΊΏcookieοΌŒζ›΄ζ–°θ‡³ζœεŠ‘ε™¨ζˆ–ζ‹·θ΄θ‡³ε‰ͺεˆ‡ζΏοΌŒδΈΊηˆ¬θ™«ζŠ“ε–θ·³θΏ‡ε€ζ‚ιͺŒθ―η θ―†εˆ«η¨‹εΊ
Stars: ✭ 46 (-47.73%)
Mutual labels:  clipboard
XamarinClipboardPlugin
Cross Platform Clipboard access for Xamarin
Stars: ✭ 24 (-72.73%)
Mutual labels:  clipboard
townshell
For Townscaper, an application providing additional keyboard shortcuts, tools to manipulate .scape files, screen recording
Stars: ✭ 40 (-54.55%)
Mutual labels:  clipboard
angular-barcode
An angular directive for lindell's JsBarcode
Stars: ✭ 25 (-71.59%)
Mutual labels:  directive
copy-pasta
Universal copy paste service, works across different machines!
Stars: ✭ 49 (-44.32%)
Mutual labels:  copy
clipetty
Manipulate the system (clip)board with (e)macs from a (tty)
Stars: ✭ 91 (+3.41%)
Mutual labels:  clipboard

v-copy

Vue directive to copy to clipboard.

Install

yarn add v-copy

CDN: UNPKG | jsDelivr (It's automatically installed as global directive v-copy in CDN)

Usage

First register the directive globally:

import Copy from 'v-copy'

Vue.use(Copy)

Or locally:

import { copy } from 'v-copy'

export default {
  directives: {
    copy
  }
}

Then use it in template:

<template>
  <button v-copy="`some text`">Copy!</button>
</template>

v-copy:callback: executed after text is copied to clipboard.

<template>
  <button 
    v-copy="`some text`"
    v-copy:callback="handleCopied">Copy!
  </button>
</template>

<script>
export default {
  methods: {
    handleCopied(text) {
      alert(`Copied: ${text}`)
    }
  }
}
</script>

Browser support

This supports what copy-text-to-clipboard supports, namely ever-green browsers and IE9+. (Not all are carefully tested though :P)

License

MIT Β© EGOIST

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].