Use stimulus controller to implement barcode scanner.

This commit is contained in:
Jan Böhmer 2022-03-07 01:28:32 +01:00
parent 1460894946
commit cb683f611c
4 changed files with 89 additions and 324 deletions

View file

@ -14,7 +14,7 @@
<div class="">
<div class="form-group row">
<div class="offset-sm-3 col-sm-9">
<video id="video" width="100%" height="auto" class="scanner-video img-thumbnail d-none">
<video id="video" width="100%" height="auto" class="scanner-video img-thumbnail d-none" {{ stimulus_controller('pages/barcode_scan') }}>
</video>
</div>
</div>