Hi Stephan Okay… Let me elaborate… What I see in the checkboxwidget is > "this.wiki.getTiddler(this.checkboxTitle);" where you take the tiddler's > title, retrieved from the "currentTiddler" variable during creation of the > tiddler (provided no tiddlertitle was given by parameter). So I assume it's > okay to retrieve the current instance in the tree. What I'd like to see, > and I've already experimented with that, is a member "temp" on the same > level where we have the member "fields". "temp" would work similar to > fields but these "temp"s are only valid while the tiddler is rendered in > view mode. This way an active widget of a tiddler can store its required > work data there. "temp" never gets saved and should be thrown away before a > tiddler is rerendered because the widgets will create it when they need to > store data. > > Does this make sense? >
See my earlier answer. We don't store state data within the tiddler containing a widget invocation because the same tiddler may be displayed multiple times, particularly if it's a template. Tiddlers are immutable; once created their fields mustn't change. Best wishes Jeremy -- 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/groups/opt_out.
