Hello Jeremy, Jes, I know that tool. Is very good. Anyway I set up (at the end!) a public github repository. You can find it at
https://github.com/danielo515/packAsPlugin/blob/master/packAsPlugin.js Here is how I'm currently using the widget: <$packPlugin name={{$:/tempPlugin!!pluginName}} filter=<<tag-filter>> > <$button message="tw-pack-plugin">pack</$button> </$packPlugin> The filter is working nice (is a macro that returns a filter) but the name does not refresh. Maybe a limitation? El jueves, 17 de abril de 2014 17:54:53 UTC+2, Jeremy Ruston escribió: > > Hi Danielo > > That fragment looks OK, can you share more of your code? btw - have you > seen http://gist.github.com? Very useful for quick sharing of code. > > Best wishes > > Jeremy. > > > > On Thu, Apr 17, 2014 at 4:46 PM, Danielo Rodríguez > <[email protected]<javascript:> > > wrote: > >> Hello Jeremy, >> >> Thank you for helping me so much, >> >> This is how the refresh function looks now and it still not working. It >> only refresh when I edit the tiddler where the widget is being used. Looks >> like it only refresh the parameters with the execute function. I think I'm >> missing something. >> >> >> packAsPlugin.prototype.refresh = function (changedTiddlers) { >> var changedAttributes = this.computeAttributes(); >> console.log(this.computeAttributes()); >> if(changedAttributes.tiddler || changedAttributes.name || >> changedAttributes.description || changedAttributes.author) { >> this.refreshSelf(); >> return true; >> } else { >> return this.refreshChildren(changedTiddlers); >> } >> }; >> > > > > -- > Jeremy Ruston > mailto:[email protected] <javascript:> > -- 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.
