pos-gis/public/assets/js/pages/crud/forms/widgets/clipboard.js

26 lines
490 B
JavaScript
Raw Normal View History

2024-10-07 06:13:42 +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();
});