How to use?
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-hs-clipboard-options='{}'
. For more detailed or missing attributes/functions, see the official Clipboard.js documentation page.
Parameters | Description | Default value |
---|---|---|
|
One of three types: tooltip , popover , default |
null |
|
Selector whose value/markup will be copied to the buffer | null |
|
Selector whose class will change after successful copy to buffer | null |
|
Classes that should be passed to the element specified in classChangeTarget , after some delay (800ms ) |
null |
|
Classes that should be passed to the element specified in classChangeTarget , immediately after successful copying to the memory buffer |
null |
|
The text with which the default will be replaced for the element specified in classChangeTarget , immediately after successful copying to the memory buffer. It will also be changed to default after some delay (800ms ) |
null |