Hi FrD

> But I was wondering if it was possible to use the set and setTo
attributes AND still propagate to the navigator widget the message
originating from the link widget.

That's already what the linkcatcher widget does:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/linkcatcher.js#L68

It will perform any or all of the three actions, depending on which
attributes are provided.

Conceivably the issue you're encountering is that the ordering of the
actions is wrong?

Best wishes

Jeremy




On Wed, Apr 9, 2014 at 3:29 PM, FrD <[email protected]> wrote:

>
>
> Le mercredi 9 avril 2014 12:36:16 UTC+2, Jeremy Ruston a écrit :
>
>> The linkcatcher widget captures tw-navigate messages, which is the
>> message generated by the link widget.
>>
>>
>>> Or suppose the link widget has "set" and "setTo" attributes. It could
>>> set a state tiddler to another value and thus activate a "reveal" widget
>>> and so maybe close a tiddler or better (in my case -:) ) a slider ...
>>>
>>
>> That's really what the linkcatcher lets us do: avoid having set/setTo
>> attributes on the link widget.
>>
>>
>
> Hi Jeremy
>
> Thanks for your answer.
> I've tried the linkcatcher widget. Indeed it captures the message from the
> link widget inside.
> But if I use the set and setTo attributes it sets the right tiddler to the
> right value but the navigation to the target tiddler doesn't happen. I
> understand it's the correct behaviour of the linkcatcher widget.
> But I was wondering if it was possible to use the set and setTo attributes
> AND still propagate to the navigator widget the message originating from
> the link widget.
> So a click would both trigger a navigation AND set a tiddler to a value.
>
> Something like :
> <$linkcatcher set="$:/state/mystatetiddler" setTo="MyValue"
> propagate="Yes">
>  ...link(s) ...
> </$linkcatcher>
>
> I don't know if it's easy to do or even if it's a good idea ...
>
> FrD
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to