Hi Matthew,

Ok I see. I thought it was some special keyword since I always put the 
variable name between quotes !

Regards

FrD

Le jeudi 16 février 2017 17:25:49 UTC+1, Matthew Lauber a écrit :
>
> Take a look at this:  http://tiddlywiki.com/static/ListWidget
>
> The variable property sets the name of the variable that the list widget 
> will store it's value in.  By default it sets the variable "currentTiddler" 
> overriding the current value of "currentTiddler".  In mario's code, it sets 
> a variable named "ignore", so if inside the loop you added "<<ignore>>" 
> you'd see the current value of the list widget.  But since you don't use 
> that variable, it's just a convenient way to avoid overriding the 
> "currentTiddler" variable.
>
> On Thursday, February 16, 2017 at 11:17:56 AM UTC-5, FrD wrote:
>>
>> Hi Mario,
>>
>> Thanks a lot for this code. I'll make good use of it (and for a "down" 
>> button too !).
>> I looked at http://tiddlywiki.com/ and couldn't find some doc about
>>
>> variable=ignore
>>
>> in the list widget or elsewhere. What is the effect of this declaration, 
>> preserve <<currentTiddler>>  without having to declare another variable ?
>>
>> Regards
>>
>> FrD
>>
>>
>>
>> Le jeudi 16 février 2017 15:43:07 UTC+1, PMario a écrit :
>>>
>>>
>>> Hi FrD,
>>>
>>> Don't show the button, if you don't want to click it ;)
>>>
>>>
>>>
>>> \define subfilter() [list[!!items]] +[move:-1[$(it)$]]
>>>
>>> \define upButton()
>>> <$list filter="[list[!!items]first[]] -$(it)$" variable=ignore 
>>> emptyMessage=''><$button><$action-listops $field="items" 
>>> $subfilter=<<subfilter>>/>Up</$button></$list>
>>> \end
>>>
>>> <$list filter="[list[!!items]]" variable="it">
>>>
>>> <<it>> <<upButton>>
>>> </$list>
>>>
>>> have fun!
>>> mario
>>>
>>

-- 
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/0bd25271-8ed3-4c04-b827-6680f302795b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to