angular-zeroclipboard

WebJar for angular-zeroclipboard

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks CLI
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-lisposter-angular-zeroclipboard
Last Version

Last Version

0.8.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-zeroclipboard
WebJar for angular-zeroclipboard
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/lisposter/angular-zeroclipboard

Download github-com-lisposter-angular-zeroclipboard

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-lisposter-angular-zeroclipboard/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-lisposter-angular-zeroclipboard</artifactId>
    <version>0.8.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-lisposter-angular-zeroclipboard/
implementation 'org.webjars.bower:github-com-lisposter-angular-zeroclipboard:0.8.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-lisposter-angular-zeroclipboard/
implementation ("org.webjars.bower:github-com-lisposter-angular-zeroclipboard:0.8.0")
'org.webjars.bower:github-com-lisposter-angular-zeroclipboard:jar:0.8.0'
<dependency org="org.webjars.bower" name="github-com-lisposter-angular-zeroclipboard" rev="0.8.0">
  <artifact name="github-com-lisposter-angular-zeroclipboard" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-lisposter-angular-zeroclipboard', version='0.8.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-lisposter-angular-zeroclipboard" % "0.8.0"
[org.webjars.bower/github-com-lisposter-angular-zeroclipboard "0.8.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.2.16,2)
org.webjars.bower : zeroclipboard jar [2,)

Project Modules

There are no modules declared in this project.

Angular ZeroClipboard

bower version

An angular wrapper for ZeroClipboard

Install

$ bower install angular-zeroclipboard

or, you can download 'angular-zeroclipboard.js' form 'src' dir manualy.

Sample

config

angular.module('demo', ['zeroclipboard']).
  config(['uiZeroclipConfigProvider', function(uiZeroclipConfigProvider) {

    // config ZeroClipboard
    uiZeroclipConfigProvider.setZcConf({
      swfPath: '../bower_components/zeroclipboard/dist/ZeroClipboard.swf'
    });

  }])

usage

Example using a two-way model binding

<input type="text" ng-model="myText" />
<button ui-zeroclip zeroclip-copied="copied=true" zeroclip-model="myText">Copy</button>
<span ng-show="copied">Text Copied!</span>

Example using interpolated text:

<input type="text" ng-model="myText" />
<button ui-zeroclip zeroclip-copied="copied=true"
        zeroclip-text="This was your text: {{ myText }}">Copy</button>
<span ng-show="copied">The sentence "This was your text: {{ myText }}" was copied!</span>

Config

Configuration passed into ZeroClipboard.config

uiZeroclipConfigProvider.setZcConf({
    swfPath: '../path/to/ZeroClipboard.swf'
})

If you already have your own configuration and don't want it to be overridden:

uiZeroclipConfigProvider.setOverrideConfig(false);

The params is an object. and just same as ZeroClipboard official config

LICENSE

MIT @ Leigh Zhu

Versions

Version
0.8.0