@@include('global/_head.html',{ "headTitle": "Clipboard", "prism": "true", }) @@include('docs/_sidebar.html', {"page": "formelements"})
@@include('global/_page-header.html', {"PageHeader": "sticky-top"} )

Clipboard

How it works

A modern approach to copy text to clipboard No Flash. No frameworks. Just 3kb gzipped https://clipboardjs.com/

Basic Example

Simply add the attribute data-clipboard-target an action button with the input element's id get it working. Then add the clipboard JS to initialize it.

<!-- Plugin Js -->
<script src="assets/bundles/clipboard.bundle.js"></script>

<!-- Jquery Page Js -->
<script>
	new ClipboardJS('.btn');
</script>
@@include('docs/_quick-url.html')
@@include('global/_page-footer.html', {"PageFooter": ""} )
@@include('global/_full-screen-menu.html', {"divClass": ""} ) @@include('global/_need-help.html', {"divClass": "offcanvas-start"} ) @@include('global/_quick-access.html', {"divClass": "offcanvas-end"} ) @@include('global/_theme-setting.html', {"divClass": "offcanvas-end"} ) @@include('global/_site-map.html', {"divClass": "offcanvas-start sm"} ) @@include('global/_body-hero-img-2.html', {"bodyBgClass": "body-bg"} ) @@include('global/_plugin-script.html', { "clipboard": "true", "prism": "true", })