ZeroClipboard for Plastiq
A plastiq component for ZeroClipboard.
var plastiq = ;var h = plastiqhtml; { return ;} plastiq;
api
var vdom = ;
-
options.oncopy
- function that is called after the copy has finished. -
options.onerror
- function that is called when an error occurs, usually if flash isn't available. See the error event in ZeroClipboard documentation. -
data
- either a string, a function that returns a string, or an object containing a string or function for each mime-type, e.g.:'text/plain': 'some text'{ return '<h1>some html</h1>'; } -
buttonVdom
- a vdom element, usually ah('button')
, to act as the copy button.
options
zeroClipboardoptions...;
A way to configure ZeroClipboard, just delegates straight to ZeroClipboard.options({...})
, see options.
Most often you'll want to do this:
zeroClipboardoptionsswfPath: '/path/to/ZeroClipboard.swf';