Skip to main content

HTMLDwebBarcodeScanningElement

BFChainWebComponentHTMLDwebBarcodeScanningElementLess than 1 minute

HTMLDwebBarcodeScanningElement is a WebComponent element that implements barcode scanning functionality.
Inherits from HTMLElementopen in new window;

<dweb-barcode-scanning></dweb-barcode-scanning>  

Properties

Methods

Events

Supports any events, no predefined events

Example

<body>
  <dweb-barcode-scanning></dweb-barcode-scanning>
  
  <button>scanner</button>

  <script type="module">
    import "@plaoc/plugins"

    const barcodeScanner = document.querySelector("dweb-barcode-scanning")!

    const btn = document.querySelector('button');

    btn.addEventListener('click', async () => {
      const res = await barcodeScanner.startScanning();
    })
  </script>
</body>

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
getViewX
processX
stopX
startScanningX
stopScanningX
getSupportedFormatsX

Plaoc WebComponent

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7