mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 14:44:38 +00:00
Add barcode reader widget to qrcode plugin (#7746)
* Add barcode reader widget to qrcode plugin * Don't use a fixed ID
This commit is contained in:
17
plugins/tiddlywiki/qrcode/examples/read/BarCodeReader.tid
Normal file
17
plugins/tiddlywiki/qrcode/examples/read/BarCodeReader.tid
Normal file
@@ -0,0 +1,17 @@
|
||||
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>>/>
|
||||
Reference in New Issue
Block a user