mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
4f07539164
* Tweak cycle operator to support step size parameter and add docs for toggle and cycle * Mention that title list should have no duplicates
28 lines
627 B
Plaintext
28 lines
627 B
Plaintext
created: 20201107154352695
|
|
modified: 20201118174726982
|
|
tags: [[Operator Examples]] [[toggle Operator]]
|
|
title: toggle Operator (Examples)
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<<.using-days-of-week>>
|
|
|
|
<<.operator-example 1 """[list[Days of the Week]] +[toggle[Wednesday]]""">>
|
|
|
|
To toggle a tag in a tiddler:
|
|
|
|
```
|
|
<$action-listops $tiddler="target" $tags="+[toggle[done]]" />
|
|
```
|
|
|
|
To toggle a title in a field:
|
|
|
|
```
|
|
<$action-listops $tiddler="target" $field="my-field" $subfilter="+[toggle[done]]" />
|
|
```
|
|
|
|
To toggle between a value pair:
|
|
|
|
```
|
|
<$action-listops $tiddler="target" $field="my-field" $subfilter="+[toggle[todo],[done]]" />
|
|
```
|