Eric, This is an interesting reuse of the tag-pill macro. Thanks for sharing. The tag macro is not too well documented but seems to have a lot of possibilities/parameters, although not documented.
For example I wanted to have a label on a tag-pill, rather then the tag name yet have the same tag drop down. Can you suggest a method? Ideally without modifying the macro? If it needs a modification to allow an alternate label I would go ahead request an update to the macro to support this. This would complement a suit of macros I have to enhance the tag drop down. And make use of the actions mentioned in the OT. As we know the use of the tag pill drop-down is a common tiddlywiki element, its extensible and people know how to use it, it is a useful element to extend somewhat. A concept I wanted to work on is what I named "action tags", ie tags that have the ability to click on and select an action relating to a tag. Eg the task tag could allow you to toggle the done tag. Thanks Tones On Wednesday, 7 July 2021 at 08:06:11 UTC+10 Eric Shulman wrote: > On Tuesday, July 6, 2021 at 9:04:25 AM UTC-7 [email protected] wrote: > >> The action I want to run is navigation to a tiddler whose name is stored >> in a field. I know how to make it work with a button: >> \define actions() <$action-navigate $to={{!!source_type}}/> >> <$button actions=<<actions>>>Click me!</$button> >> >> But when I try to do the same with a tag-pill it doesn't do anything: >> <$macrocall $name="tag-pill" tag={{!!source_type}} actions=<<actions>>/> >> > > In order for the tag-pill macro to invoke an $action-* widget, you need to > specify element-tag="$button". > > Try this: > \define actions() <$action-navigate $to=<<__tag__>>/> > <$macrocall $name="tag-pill" element-tag="$button" tag={{!!source_type}} > actions=<<actions>>/> > > 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/3b8141a2-aedc-4faa-8122-1ba21686bdd8n%40googlegroups.com.

