chess/public/assets/js/pages/crud/forms/widgets/clipboard.js
Ramadhon Ikhsan Prasetya 603e31b0f4 init
2024-08-29 10:56:32 +07:00

26 lines
490 B
JavaScript
Vendored

"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();
});