1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-06 01:56:20 +00:00
TiddlyWiki5/plugins/tiddlywiki/qrcode/examples/read/BarCodeReader.tid
Jeremy Ruston 96b0543351
Add barcode reader widget to qrcode plugin (#7746)
* Add barcode reader widget to qrcode plugin

* Don't use a fixed ID
2023-10-14 09:42:34 +01:00

18 lines
555 B
Plaintext

title: $:/plugins/tiddlywiki/qrcode/examples/read/BarCodeReader
tags: $:/tags/ReadQR
caption: Barcode Reader
\procedure success()
<$action-setfield $tiddler="$:/state/BarCodeReaderDemoStatus" text=<<text>> result=<<format>> success="yes"/>
\end
\procedure failure()
<$action-setfield $tiddler="$:/state/BarCodeReaderDemoStatus" text=<<error>> success="no"/>
\end
Scanning status: {{$:/state/BarCodeReaderDemoStatus}}
{{$:/state/BarCodeReaderDemoStatus||$:/core/ui/TiddlerFields}}
<$barcodereader actionsSuccess=<<success>> actionsFail=<<failure>>/>