Reveal widget and wikitext tables

54 views
Skip to first unread message

David Allen

unread,
Jun 23, 2019, 12:55:38 AM6/23/19
to TiddlyWiki
I've recently discovered that the wikitext tables (defined using vertical bars) are awesome, but I'm having an issue.  I want two rows of a table to appear only when a check box is checked.  This is what I'm doing (the macros are simply an edit-text and a select widget, it just makes the code cleaner):

<$reveal state="ScratchPad!same_address" state="nomatch" text="yes">
|Address: | <
<job_address>>|
|City: | <
<job_city>>|
</$reveal>

The problem with this is the content of the reveal widget displays as a separate table, where I want these two lines to be part of the original table.  I'd rather not have to encompass all four cells in separate reveal widgets if I don't have to.  Does anyone know if there is a decent way to do this using the vertical bar tables?

Mat

unread,
Jun 23, 2019, 7:29:51 AM6/23/19
to TiddlyWiki
David, I don't think that is possible with the wikitext table because the revealwidget creates a div around the table which breaks the outer table. As you indicate that you know; it would be possible if the table was a html table.

<:-)

TonyM

unread,
Jun 23, 2019, 8:08:47 AM6/23/19
to TiddlyWiki
A quick idea

Try this and see if the rows contine

|topline|value|


<$reveal state="ScratchPad!same_address" state="nomatch" text="yes">|Address: | <<job_address>>|
|City: | <<job_city>>|
</$reveal>

Otherwise I do use html tables with parts wrapped in list widgets for a variable number of rows, even columns.

Only on my mobile now.

Regards
Tony

Reply all
Reply to author
Forward
0 new messages