mandag den 3. februar 2020 kl. 16.37.00 UTC+1 skrev Eric Shulman:
>
> 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
>

Thank you for you guiding Eric.

yikse.. I mismatched the two widgets (too little coffee) sorry for the 
confusion. 

what I meant was the exact opposite:

It works good with the reveal *details *widget, however with thet solution 
> I made, the open/closed status of the lists are remembered for each 
> individual tiddler. That is not possible with the reveal *details *widget.
>

I do use the *reveal *widget but with "stateTitel" and "stateIndex" (see 
below). Is there a advantage by using "default" instead? 

<$reveal type="match"  stateTitle="$:/plugins/HCHaase/TOCgeneric/state" 
stateIndex=<<currentTiddler>> text="show">  


-- 
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/37229dda-f26a-44c4-bf7e-9bc1d7c730e8%40googlegroups.com.

Reply via email to