On Monday, February 3, 2020 at 2:13:34 AM UTC-8, HC Haase wrote:
>
> It works good with the reveal widget, however with the solution I made, 
> the open/closed status of the lists are remembered for each individual 
> tiddler. That is not possible with the reveal widget.
>

The $reveal widget CAN be used with "state" values that are stored as 
indexes in a data tiddler.  The trick is to not actually use the "state" 
parameter, but instead, use the "default" parameter:
<$reveal default={{MyData##someindex}} type="match" text="open"> 

This works because, as per the documentation for $reveal:
default Default value to use when the state tiddler is missing

Alternatively, you can use the "stateTitle" and "stateIndex" parameters:
<$reveal stateTitle="MyData" stateIndex="someindex" type="match" 
text="open">

Again, as per documentation for $reveal
stateTitle A title containing the state, *without* TextReference 
<https://tiddlywiki.com/#TextReference>. Gets preferred over the state
 attribute
stateField A *field name* which is used to look for the state, if the 
attribute stateTitle is present
stateIndex An *index* which is used to look for the state, if the attribute 
stateTitle is present

enjoy,
-e

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/de2f8dd1-c92c-41d8-a94f-780a9dc19606%40googlegroups.com.

Reply via email to