English | 中文 | Orther demos
This project is a Blazor component library packaged with ZXing
ssr https://zxingblazor.app1.es
wasm https://densen2014.github.io/
https://www.nuget.org/packages/ZXingBlazor/
_Imports.razor
@using ZXingBlazor.Components
Pages/_Host.cshtml , in wasm is: wwwroot/index.html
<script src="_content/ZXingBlazor/lib/barcodereader/zxing.js"></script>
<script src="_content/ZXingBlazor/lib/barcodereader/barcode.js"></script>
In your Blazor page
Pages/_Host.cshtml , in wasm is: wwwroot/index.html
<script src="_content/ZXingBlazor/lib/handwritten/handwritten.js"></script>
now support set button text: code https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/IndexEN.razor demo https://zxingblazor.app1.es/
<BarcodeReader ScanResult="((e) => { BarCode=e; ShowScanBarcode = !ShowScanBarcode; })"
ShowScanBarcode="ShowScanBarcode"
Close="(()=>ShowScanBarcode=!ShowScanBarcode)"
ScanBtnTitle="Scan"
ResetBtnTitle="Reset"
CloseBtnTitle="Close"
SelectDeviceBtnTitle="Select Device"
/>
- Fork this project
- Create new Feat_xxx branch
- Submit the code
- New Pull Request