I tried this code. After the slider is revealed, as soon as I click anywhere, it hides back. Is that how this is supposed to work?
On Monday, December 3, 2018 at 11:05:33 PM UTC-8, Jed Carty wrote: > > For reasons that have to do with how the macro parser works that I don't > think I can explain in an understandable way right now your set widget is > the problem. > > try using this macro instead: > > \define slider(label,text) > <$button popup="$:/state/$(currentTiddler)$$label$" class="btn-invisible > tw-slider">$label$</$button> > <$reveal type="nomatch" text="" default="" state="$:/state/$( > currentTiddler)$$label$" animate="yes"> > > > $text$ > > > </$reveal> > \end > > > <<slider "*" "hello there">> > > the quick thing is that $(variable)$ is a direct text substitution and > <<variable>> doesn't work the same way. if you look at the state tiddler > created using yours it is literally called $:/state/<<this>>* without the > <<this>> part being substituted. > -- 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/f3d6cf6b-e1ae-47ee-86d5-bb60ff984426%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

