[tw5] Re: Dynamic class
Many thanks this works! Eric Shulman schrieb am Sonntag, 23. Januar 2022 um 10:41:15 UTC+1: > Remove the quotes around `"""<>"""`. Like this: > ``` > <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" > class=<> /> > > <$macrocall $name="testFunction" alignmentTabs=<> > tName="""$tName$""" /> > > ``` > On Sunday, January 23, 2022 at 1:29:55 AM UTC-8 thomas.sch...@gmail.com > wrote: > >> Hello Marc >> I tested this only the last Test shows the Tabs Vertical >> Thanks for your help. >> >> ``` >> \define testFunction(alignmentTabs:"", tName:"" ) >> Second Test: <>,$alignmentTabs$ >> >> <$macrocall $name="tabs" tabsList="[tag[$tName$]nsort[order]]" >> class="""$alignmentTabs$""" /> >> >> \end >> >> \define dynamicTabs(current:"", tName:"" ) >> >> <$set name="alignmentTabs" value="tc-vertical" > >> First Test: <>,$alignmentTabs$ >> >> <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" >> class="""<>""" /> >> >> <$macrocall $name="testFunction" alignmentTabs="""<>""" >> tName="""$tName$""" /> >> >> >> Last Test: >> <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" >> class="tc-vertical" /> >> >> '' >> \end >> >> <$macrocall $name="dynamicTabs" current=<> >> tName="TableOfContents"/> >> ``` >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/27f6aa0f-1e78-4df2-b649-66806af35669n%40googlegroups.com.
[tw5] Re: Dynamic class
Hello Marc I tested this only the last Test shows the Tabs Vertical Thanks for your help. ``` \define testFunction(alignmentTabs:"", tName:"" ) Second Test: <>,$alignmentTabs$ <$macrocall $name="tabs" tabsList="[tag[$tName$]nsort[order]]" class="""$alignmentTabs$""" /> \end \define dynamicTabs(current:"", tName:"" ) <$set name="alignmentTabs" value="tc-vertical" > First Test: <>,$alignmentTabs$ <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" class="""<>""" /> <$macrocall $name="testFunction" alignmentTabs="""<>""" tName="""$tName$""" /> Last Test: <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" class="tc-vertical" /> '' \end <$macrocall $name="dynamicTabs" current=<> tName="TableOfContents"/> ``` -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d8bc9231-a075-4cd9-8f10-a7e3f486de56n%40googlegroups.com.
[tw5] Dynamic class
Hello I try to make a tabs with a dynamic changeable class tc-vertical and tc-horizontal. I tried many things the simplest are this two but they didn't work. The $tName$ works but class seems to use another render path. <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" class="""$alignment$""" /> <$macrocall $name="tabs" tabsList="""[tag[$tName$]nsort[order]]""" class="""<>""" /> This generate this HTML code in firefox: or Can anyone help to get this working. Thanks Thomas -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/395a71c6-0def-4c0f-8670-53b213006fcen%40googlegroups.com.