Barcode rendering and decoding
- Install extension and required packages:
npm i @zxing/browser:0.0.8 @zxing/library:^0.18.5 webrtc-adapter - Import Javascript:
import { default as Zxing } from 'js/components/zxing.js';Zxing.go();
- Create a template like the one in
Resources/Private/Templates/BarcodeGenerator/Form.html(SET THE ID`S OF THE ELEMENTS!!) - Pass an optional handler to the
gomethod (for an example, look intoResources/Private/JavaScript/zxing.jsonDetected(result))