Created
September 8, 2020 05:24
-
-
Save yushulx/664cf4442e2dcade055ba593e30e72ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <button class="btn btn-primary" @onclick="ReadBarcodes">Read Barcodes from Files</button> | |
| @code { | |
| private static String result = "No Barcode Found"; | |
| protected override void OnInitialized() | |
| { | |
| JSRuntime.InvokeVoidAsync("jsFunctions.init", DotNetObjectReference.Create(this)); | |
| } | |
| public async Task ReadBarcodes() | |
| { | |
| await JSRuntime.InvokeVoidAsync( | |
| "jsFunctions.selectFile"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment