Nonviolent Pirate Mobster
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    component-clipboardpublic

    Clipboard

    Clipboard library.

    Installation

    $ component install component/clipboard

    Example

    var Clipboard = require('clipboard');
    var clip = new Clipboard(window);
     
    clip.on('paste', function(e){
      e.items.forEach(function(item){
        console.log(item);
      });
    });
     
    clip.on('cut', function(){
      console.log('cut');
    });
     
    clip.on('copy', function(e){
      console.log('copy');
    });

    API

    Clipboard#bind()

    Bind event handlers. This is done for you in the constructor.

    Clipboard#unbind()

    Unbind event handlers.

    Links

    License

    MIT

    install

    npm i component-clipboard

    Downloadslast 7 days

    4

    version

    0.1.7

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar