Hi Jeremy, I think I'm close. I have it so a button with the message="tm-copy" will fire the event so I put alerts in my function to see if I could figure out how to pass variable to it, but I con't figure out how to pass set or setTo to the module. Can't I just use a module-type: widget like $:/core/modules/widgets/fieldmangler.js somehow? Also, why does it dirty the file? Check out my startup module here <http://t5a.tiddlyspot.com/#%24%3A%2FModules%2FStartup%2FCopy.js>. Thanks.
On Fri, Jan 9, 2015 at 12:49 PM, Jeremy Ruston <[email protected]> wrote: > Hi Andrew > > For handling custom widget messages you'd normally create a startup module > like: > > > https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/startup/rootwidget.js > > Macros can't handle widget messages; they are just invoked when the macro > value is required. > > Best wishes > > Jeremy. > > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywikidev. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
