BarcodeScannerDialog
The BarcodeScannerDialog component provides barcode scanning functionality for all devices that support the MediaDevices.getUserMedia() native API.
Opening the dialog launches the device camera and scans for known barcode formats.
A scanSuccess event fires whenever a barcode is identified
and a scanError event fires when the scan failed (for example, due to missing permisions).
Internally, the component uses the zxing-js/library third party OSS.
For a list of supported barcode formats, see the zxing-js/library documentation.
Basic Sample​
Properties​
open​
Slots​
No slots available for this component.
Events​
scan-success​
scan-error​
Methods​
show​
close​
CSS Parts​
No CSS parts available for this component.