1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

copy result set as tsv #50

This commit is contained in:
lana-k
2021-08-20 18:06:58 +02:00
parent bb39dcbc2f
commit 6dc81f7be6
3 changed files with 42 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
import Lib from 'plotly.js/src/lib'
export default {
async copyCsv (str) {
await navigator.clipboard.writeText(str)
Lib.notifier('CSV copied to clipboard successfully', 'long')
}
}