@ewc-lib/ewc-dialog-clipboard
Advanced tools
Comparing version 1.0.0-alpha to 1.0.1-alpha
{ | ||
"name": "@ewc-lib/ewc-dialog-clipboard", | ||
"version": "1.0.0-alpha", | ||
"version": "1.0.1-alpha", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -27,6 +27,16 @@ # Screenshot | ||
"dependencies": { | ||
"@ewc-lib/ewc-dialog-clipboard": "^0.1.0" | ||
"@ewc-lib/ewc-dialog-clipboard": "^1.0.0-alpha" | ||
}, | ||
## webpack.config | ||
plugins: [ | ||
new CopyPlugin({ | ||
patterns: [ | ||
{ from: "./node_modules/@ewc-lib/ewc-dialog-clipboard/assets/*", to: "./assets/[name][ext]" } | ||
], | ||
}), | ||
], | ||
## main.js | ||
@@ -48,7 +58,7 @@ | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
const el = document.getElementsByTagName("ewc-dialog")[0] | ||
el.title = "ewc-dialog-feedback demonstration" | ||
const el = document.getElementsByTagName("ewc-dialog-clipboard")[0] | ||
el.title = "ewc-dialog-clipboard demonstration" | ||
el.bodyHtml = "Click to copy to clipboard." | ||
el.clipboardContent = "This is the text being copied into the clipboard." | ||
el.visible = true | ||
el.clipboardContent = "This is the text being copied into the clipboard." | ||
}) | ||
@@ -55,0 +65,0 @@ </script> |
37397
66