You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<atarget="_blank"href="https://jsfiddle.net/DynamsoftTeam/d6comprf/"title="Run via JSFiddle"style="text-decoration:none;">
136
+
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
137
+
</a>
138
+
</p>
139
+
105
140
### Step 1: Setting up the HTML and Including the Barcode Scanner
106
141
107
142
As outlined earlier, this guide will help you create a simple Hello World barcode scanning application using vanilla JavaScript. The full sample code is also available in the [GitHub repository](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main).
@@ -202,6 +237,12 @@ This is the **simplest** way to initialize the Barcode Scanner. The configuratio
202
237
constbarcodeScanner=newDynamsoft.BarcodeScanner({
203
238
license:"YOUR_LICENSE_KEY_HERE",
204
239
scanMode:Dynamsoft.EnumScanMode.SM_MULTI_UNIQUE,
240
+
// onUniqueBarcodeScanned: (result) => {
241
+
// console.log("Scanned barcode: ", result.text);
242
+
// if (condition) { // You can add custom logic here to handle each scanned barcode
0 commit comments