exmg-copy-to-clipboard
Version:
Helper element to create a copy to clipboard button
31 lines (20 loc) • 794 B
Markdown
# exmg-copy-to-clipboard
Helper element to create icon/buttons that lets the user copy content to the clipboard. Just wrap it arround
the button or icon and set the value that needs to be copied.
Please visit the [API Documentation and demo](http://ExmgElements.github.io/exmg-copy-to-clipboard/) page for more information.
## Usage
```html
<exmg-copy-to-clipboard value="mark@test.com">
<paper-icon-button icon="content-copy"></paper-icon-button>
</exmg-copy-to-clipboard>
```
## Install
Install the component using bower
```
$ bower install --save ExmgElements/exmg-copy-to-clipboard
```
## Development
First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run polymer server to launch the demo page.
```
$ polymer serve
```