I use data tiddler (Json tiddler) to store settings and configs of a plugin
or other tools.

Below is an example how to toggle/switch a value in a data tiddler (e.g.
myTest)
It uses a pair of  *key*: *mode* and *value*: *author-mode /
presentation-mode*

*Go to *https://tiddlywiki.com/ and create a tiddler and give a try!


<$vars tid="myTest">

<$button>Toggle
<$list
filter="[<tid>getindex[mode]!match[author-mode]!match[presentation-mode]]">
<$action-setfield $tiddler=<<tid>> $index="mode" $value=""/>
</$list>

<$action-listops $tiddler=<<tid>> $index="mode"
$subfilter="+[toggle[author-mode],[presentation-mode]]" />
</$button>

;Result
:<$text text={{{[<tid>getindex[mode]]}}}/>
</$vars>




Best wishes
Mohammad

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCD8mspNPdCX-hfojx%2B73Zj33E%2B5mm8ju75SnE3hjf_nA%40mail.gmail.com.

Reply via email to