Hi Danielo > > Do you mean that changing the field value with the edit-text widget does >> not cause your widget to update? If so, you need to have a look at the >> widget refresh function. It needs to explicitly check which changed >> attributes should trigger a refresh. > > > Yes, that is exactly what I mean. Let's say I want to monitor the name > attribute. How can I indicate that in the refresh function? >
Have a look at the refresh function of, say, the transclude widget: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/transclude.js#L92 This is the critical line: if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.transcludeTitle]) { It checks whether the values of any of the three attributes have changed, and then checks whether the tiddler specified in the tiddler attribute has changed. Best wishes Jeremy > > Thank you very much. > > -- > 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. > -- Jeremy Ruston mailto:[email protected] -- 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.
