Move your entire table to a macro:

\define mytable() 
|$(myclasses)$|k
|This is a caption |c
|Cell1 |Cell2 |
|Cell3 |Cell3 |
|Header|Header|h
|Footer|Footer|f
\end


And then invoke like:


<$vars myclasses="myclass anotherClass">

<<mytable>>
</$vars>



Good luck
-- Mark


On Wednesday, January 30, 2019 at 3:06:11 PM UTC-8, David Nebauer wrote:
>
> I've been unable to specify table classes in the classes pseudo-row from 
> "outside" the table:
>
> Can't do it with a variable:
>
> <$vars varclasses="myclass1 myclass2">
>
> |<<varclasses>>|k
> ...
>
> </$vars>
>
> Can't do it with a macro:
>
> \define macroclasses() myclass1 myclass2
>
> |<<macroclasses>>|k
> ...
>
> Can't do it by transcluding from another tiddler:
>
> |{{tiddlerclasses}}|k
> ...
>
> I also experimented with a <$text> widget in case wikification was 
> involved, but without success.
>
> It *is* possible to load a table cell from variables, macros and 
> transclusion, so I assume my problem is that the classes pseudo-row is 
> handled in a special manner. If so, is there a way around that mechanism to 
> load the class names from outside the table?
>
> Note: I realise I can achieve my goal by creating my own class, copying 
> the content of other classes into it, and then adding the new class name 
> directly to the table classes pseudo-row. I'd still like to pursue this 
> possibility, though, if possible...
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/af4e8220-3953-4d72-b2d3-5d499eb5666a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to