A somewhat different technique is to wrap the text in a <$link> widget, and 
then that in a <$linkcatcher> which has an "actions" attribute. The <$link> 
can also change it's rendered tag and tag whatever classes you assign. For 
me, the advantage was that the actions clause could distinguish when a user 
was clicking on the text, and when they were clicking on a link inside the 
text (but only for links to tiddlers, sadly).

On Friday, July 3, 2020 at 1:38:48 AM UTC-7, TW Tones wrote:
>
> Saq et al..
>
> I may be missing something, but the tag only permits one html tag, I need 
> both `<code>` and `<pre>` and anyway other button class settings come into 
> play like centre.
>
> I will keep exploring the options but if someone has a working example i 
> would be nice.
>
> Basically how to wrap "anything" in a button, to get the trigger but not 
> alter the appearance of the content of the button.
>
> Regards
> Tony
>
>
> On Friday, July 3, 2020 at 4:11:50 PM UTC+10, Saq Imtiaz wrote:
>>
>> ButtonWidget, not button.
>>
>> Use the tag attribute to create whichever element you need.
>>
>

-- 
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/5a36264f-635f-469e-a3b2-a0b5159c9900o%40googlegroups.com.

Reply via email to