vue-barcode-scanner
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "vue-barcode-scanner", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Barcode Scanner Plugin for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,8 +25,7 @@ # Vue Barcode Scanner | ||
```javascript | ||
// inject with option (add sound) | ||
// inject barcode scanner with option (add sound effect) | ||
// sound will trigger when it's already scanned | ||
// sound setting is false | ||
let options = { | ||
sound: true, // default is false | ||
soundSrc : '/static/sound.wav' | ||
soundSrc : '/static/sound.wav' // default is blank | ||
} | ||
@@ -43,3 +42,3 @@ | ||
```javascript | ||
this.$barcodeScanner.init(this.onBarcodeScanned) | ||
this.$barcodeScanner.init(callbackFunction) | ||
``` | ||
@@ -55,3 +54,3 @@ | ||
## Usage | ||
In your component file (.vue) | ||
In your component file (.vue) just for the component you need to listener for barcode | ||
@@ -62,3 +61,3 @@ ```javascript | ||
// Add barcode scan listener and pass the callback function | ||
this.$barcodeScanner.init(callbackFunction) | ||
this.$barcodeScanner.init(this.onBarcodeScanned) | ||
}, | ||
@@ -65,0 +64,0 @@ destroyed () { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4394
72