Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-clipboard

Clipboard.js button component

  • 0.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22K
increased by8.89%
Maintainers
1
Weekly downloads
 
Created
Source

ember-cli-clipboard

Downloads Build Status Ember Observer Score

A simple ember wrapper around clipboard.js (no flash)

Demo Page

http://jkusa.github.io/ember-cli-clipboard

Usage


<!-- Set text directly -->
{{#copy-button
  clipboardText='text to be copied'
  success='success'
  error='error'
}}
  Click To Copy
{{/copy-button}}

<!-- Get text from target element -->
<input id="url" type="text" value="https://github.com/jkusa/ember-cli-clipboard">
{{#copy-button
  clipboardTarget="#url"
  success='success'
  error='error'
}}
  Click To Copy
{{/copy-button}}

Properties

  • clipboardText - string value to be copied
  • clipboardTarget - selector string of element from which to copy text
  • clipboardAction - string value of operation: copy or cut (default is copy)

Actions

The following clipboard.js custom events are sent as actions

  • success sent on successful copy
  • error sent on failed copy

More information about the clipboard.js events can be found here

Browser Support

For browser support information, checkout the clipboard.js documentation:

https://github.com/zenorocha/clipboard.js/#browser-support

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

FAQs

Package last updated on 02 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc