You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`uiZeroclipConfigProvider.setZcConf({})` Config the ZeroClipboard
32
+
Configuration passed into `ZeroClipboard.config`
33
+
34
+
* `uiZeroclipConfigProvider.setZcConf({
35
+
moviePath: '../path/to/ZeroClipboard.swf'
36
+
* })`
38
37
39
38
The params is an object. and just same as [ZeroClipboard official config](https://github.com/zeroclipboard/zeroclipboard/blob/1.x-master/docs/instructions.md)
40
39
41
-
*`uiZeroclipConfigProvider.setOptions()` Config this directive Config
40
+
## Usage
42
41
43
-
```js
44
-
{
45
-
// set the button class
46
-
buttonClass:'',
47
-
48
-
// set button's Text
49
-
buttonText:'Copy',
50
-
51
-
// set `true`, then when trigger an event by clipboard, it will emit an angular event by .$emit()
52
-
// then you can listen the angular type event in your controller.
53
-
// the event which be emited will bt like: 'ZeroClipboard.[eventType]', for example: 'ZeroClipboard.complete'
54
-
// ATTENTION: if you set this to true, the callback functions you set below will be ignored.
55
-
emitEvent:true,
56
-
57
-
// set the callback function of the events which ZeroClipboard dispataches
0 commit comments