chess/public/assets/js/pages/crud/forms/widgets/clipboard.js

26 lines
490 B
JavaScript
Raw Permalink Normal View History

2024-08-29 03:56:32 +00:00
"use strict";
// Class definition
var KTClipboardDemo = function () {
// Private functions
var demos = function () {
// basic example
new ClipboardJS('[data-clipboard=true]').on('success', function(e) {
e.clearSelection();
alert('Copied!');
});
}
return {
// public functions
init: function() {
demos();
}
};
}();
jQuery(document).ready(function() {
KTClipboardDemo.init();
});