Dave
2018-12-04 05:29:46 UTC
I thought that I was clever to make a slider macro/reveal widget that
stored its state in just the tiddler it was in:
\define slider(label,text)
<$set name=this value=$(currentTiddler)$ >
<$button popup="$:/state/<<this>>$label$" class="btn-invisible
tw-slider">$label$</$button>
<$reveal type="nomatch" text="" default="" state="$:/state/<<this>>$label$"
animate="yes">
$text$
</$reveal></$set>
\end
<<slider "*" "hello there">>
but when I put "<<slider "*" "hello there">>" in two separate tiddlers,
they both open when I click on either of them. If I change the "*" to
something different in the second one, like "**" they stay separate, but I
thought the use of <<this>> (whose value=$(currentTiddler)$) would put the
state in different places because the tiddlers are named differently.
What am I doing wrong here?
thanks,
- Dave
stored its state in just the tiddler it was in:
\define slider(label,text)
<$set name=this value=$(currentTiddler)$ >
<$button popup="$:/state/<<this>>$label$" class="btn-invisible
tw-slider">$label$</$button>
<$reveal type="nomatch" text="" default="" state="$:/state/<<this>>$label$"
animate="yes">
$text$
</$reveal></$set>
\end
<<slider "*" "hello there">>
but when I put "<<slider "*" "hello there">>" in two separate tiddlers,
they both open when I click on either of them. If I change the "*" to
something different in the second one, like "**" they stay separate, but I
thought the use of <<this>> (whose value=$(currentTiddler)$) would put the
state in different places because the tiddlers are named differently.
What am I doing wrong here?
thanks,
- Dave
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/0862d573-2b3f-4e66-ac9f-01e06b4b3465%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/0862d573-2b3f-4e66-ac9f-01e06b4b3465%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.