On Wednesday, October 23, 2019 at 7:28:45 AM UTC-7, Luis Gonzalez wrote: > > The reveal widget is used in conjuntion with a state tiddler, state field > or state property but I cant find the option of revealing a portion of text > depending the value of a variable. > > for example, I have a variable with the tasks done without closing date: > > <$set name="cuantity" filter="[tag[done]close_date[]count[]]"> > > I want to show some buttons if this cuantity is not zero. Something like: > > <$set name="cuantity" filter="[tag[done]close_date[]count[]]"> > <$reveal type="nomatch" text="0" state=<<cuantity>> > > > THE BUTTONS > > </$reveal> > </$set> > > I can't find a solution >
If you omit the "state" param, you can use the "default" param instead, which allows you to use a variable... like this: <$reveal type="nomatch" text="0" default=<<cuantity>> > enjoy, -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/87a97731-45d0-4f61-bf6c-a885f463a8a1%40googlegroups.com.

