LaCava Research Wiki

Initiated September 2017

WidgetMessage: tm-fold-tiddler

24th April 2016 at 7:31pm

The tm-fold-tiddler message folds the tiddler specified in the param parameter. It does so by setting the text of a state tiddler to either "show" or "hide", according to the fold state.

NameDescription
paramTitle of the tiddler that should be folded. If the tiddler is already folded, it will be unfolded instead.
foldedStatePrefixPrefix for the state tiddler in which the fold state is stored. If no state prefix is provided, tm-fold-tiddler will do nothing.

The core uses a foldStatePrefix of '$:/state/folded/' to store the fold states for the default story view.

The tm-fold-tiddler message is usually generated with the ButtonWidget and is handled by the surrounding NavigatorWidget.