Hi again, Alex,

As for replacing reveals, there is something about *setvars* I have not yet 
communicated:

Other than most widgets in the core,
the *setvars* only computes its variables once, and that is *by design*!

Try this in a new tiddler on: http://tobibeer.github.io/tw5-plugins

'' setvars ''

<$setvars uuid="[id]" _id="[make[%uuid%]]"><<uuid>></$setvars>

''set''

<$set name="uuid" filter="[make[%uuid%]]"><<uuid>></$set>

Now, go ahead and switch a tab in the sidebar!
Observe what happens to the uuid variable in both cases.

Obviously, if you were to want to replace reveals with setvars,
there will have to be a way to refresh the variables it defines.

For this reason, I will implement a new attribute called $*set-refresh*, 
which will recalculate:

   - all variables, should the attribute not define any value
   - only those variables specified in the attribute value, separated by 
   blanks

...at every refresh cycle and then refresh the widget if any variables 
being watched should change their value.

Something like...

<$setvars $set-refresh="foo"
foo="if(true ? then : else)"
 _true={{!!some-field}}
 _then={{!!some-other-field}}
 _else=<<some-var>>>
<<foo>>
</$setvars>

In other words, any attributes that start with *$set-*
will henceforth be reserved for special *setvars* widget options.

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e4972855-e8b6-45d2-a0f9-5038d00e1206%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to