Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 687 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 687 Bytes

ember-zeroclipboard

ZeroClipboard functionality wrapped up in a simple Ember component. Requires Ember v1.12 or greater.

Installation

# From within your ember-cli project
ember install:addon ember-zeroclipboard

Usage

{{#zero-clipboard text=textToCopy afterCopy='didCopy'}}Copy{{/zero-clipboard}}

You can also configure ZeroClipboard any way you want by simply specifying the options in your application's config/environment.js file:

ENV['ember-zeroclipboard'] = {
  activeClass: 'active',
  hoverClass: 'hover'
};