Thanks Mario, I'm trying to create a widget that looks at any tiddlers tagged by a tag, and creates buttons with the names of those tiddlers. Clicking one of the buttons clears all tags matching those button names, and sets the tag of the particular button clicked.
- - Call a widget with a parameter "sourceTag" to create a row of buttons which: - Get list of Tiddlers tagged by sourceTag (say, "Colours") - Finds Tiddlers called "Red", "Blue", "Green" - Create buttons labelled "Red", "Blue", "Green" - Clicking "Red" clears tag "Red", "Blue", "Green" and sets tag "Red" So... I'm thinking the easiest way is just to recreate the button.js widget into what I need. Would love to find an easier way, though! Having said that... Really what I'm trying to learn is how to write a javascript widget that sends messages up the chain to the tiddler the widget is sitting on, and I'm stuck on doing this with a button widget! Child widgets made in button.js do work (i.e. text), but not action-sendmessage! Thanks, David. On Friday, 19 August 2016 11:04:50 UTC-4, PMario wrote: > > Hi David, > > If you could describe, what you want to achieve, I think we can provide a > solution without modifying the button.js file. > > Skimming your code I'm pretty sure, this may work out of the box. > > -m > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywikidev@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/57e16db6-63e6-4c0f-af2a-f7c7b6e83b7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.