2019년 10월 28일 오전 11:35
The tm-fold-tiddler
message toggles the value of a state tiddler. It does so by setting the text of a state tiddler to either "show
" or "hide
", according to the fold state.
Name | Description |
---|---|
param | ignored ... foldedState must be used |
foldedState | State tiddler in which the fold state is stored |
The tm-fold-tiddler
message is usually generated with the ButtonWidget and is handled by the surrounding NavigatorWidget.
The core $:/core/ui/ViewTemplate defines a global variable folded-state
, that is used with every tiddler. It's created like this:
\define folded-state()
$:/state/folded/$(currentTiddler)$
\end