Tiddly Novice,
May I respectfully suggest no need to resort to java script in most cases,
because tiddlywiki does this nativity in Widgets and filters. If you do
build things in javascrip that do things tiddlywiki does not currently do,
please share with the community.
Regards
Tony
On
Mostly what I was trying for was just a general purpose repeater. Sort of
like a For Loop from Java or Basic, except for Wikitext instead. Of course,
since TiddlyWiki can just use a javascript to loop things as needed, I
guess the best option for me right now is to just use javascript when I
Thomas et al
We now have the range operator as well.
List is to me the key to tiddlywiki because through it and filters its all
about sets, sets of tiddlers, tags, fields or any other list.
It is for all or for each we use list to repeat anything macro or otherwise.
Regards
Tony
--
You
Hi,
My favorite repeater is the list widget:
\define buttonmacro(countUp, caption)
<$button style="background-color:White; width:100%; height:100%" >
"""
Button $caption$ $countUp$
"""
\end
<$list filter="[enlist[1 2 3]]" variable="nr">
<$macrocall $name="buttonmacro" countUp=<> caption="c"
Tiddly Novice,
Thanks for sharing with the community. I am a Super User rather than a Java
script writer. So it is not as meaningful to me as it would to others.
However If a knew better what you wanted to do from the get go, I could
more than likely do it in WikiText/Macros.
If you want to
Okay, I'm pretty sure I've gotten a $macrocall with named parameters
version working.
Here is the demo tiddler:
\define buttonmacro3(countUp param1 param2)
<$button style="background-color:White; width:100%; height:100%" >"""
$param1$ $param2$ $countUp$
"""
\end
\define interimmacro2(countUp
Mere moments after I posted, I realized I was overthinking the problem.
The code for a demonstration tiddler:
\define buttonmacro(countUp caption1 caption2)
<$button style="background-color:White; width:100%; height:100%" >"""
Button $caption1$ $caption2$ $countUp$
"""
\end
\define
7 matches
Mail list logo