A $reveal
widget uses a state
tiddler to track the opened/closed state of the widget. Typically, this is a tiddler containing one of two values, such as “yes” and “no”. Depending upon how the specific $reveal
was written, sometimes the state tiddler is automatically removed when the $reveal
is closed, such as when the $reveal
is used to show a popup (with parameters type="popup" state=<<qualify "StateTiddlerTitle">>
).
In a shortcut definition, you could use either an <$action-setfield>
or <$action-deletetiddler>
widget to control the state of a $reveal
, as long as you know the name of the state tiddler. If the state tiddler name is generated using the <<qualify "StateTiddlerTitle">>
macro, you can find the tiddler using a filter with [prefix[StateTiddlerTitle]]
without having to know the specific “qualify” value that was appended to the end of the title.
-e