Add table results headers context menu

This commit is contained in:
Dan Sosedoff
2017-09-16 13:50:22 -05:00
parent 206416889c
commit 81af2a9a27
5 changed files with 130 additions and 24 deletions

12
static/js/utils.js Normal file
View File

@@ -0,0 +1,12 @@
function copyToClipboard(text) {
const element = document.createElement("textarea");
element.style.display = "none;"
element.value = text;
document.body.appendChild(element);
element.focus();
element.setSelectionRange(0, element.value.length);
document.execCommand("copy");
document.body.removeChild(element);
}