Based on the deprecating reveal widget comment in [TW2036] Planning for v5.4.0
Would Conditional Shortcut Syntax
be the preferred method going forward?
I have managed to get a working replacement version, I just need to adjust for use in tabs macro.
<style>
/* Table caption at top */
.table-caption-top caption {
caption-side:top;
margin-bottom:0.2rem;
}
</style>
<div style="overflow-x:auto;">
<%if [{!!category_radio}match[Total]] %>
|tc-center tc-max-width-80 table-caption-top|k
|A|B|C|lorem|h
| 100| 200| 300|<<.lorem>>|
|<$radio field="category_radio" value="Total"> Total </$radio> - <$radio field="category_radio" value="Stat/1s"> Stat/1s </$radio> - <$radio field="category_radio" value="Stat/60s"> Stat/60s </$radio> - Test Table|c
<%endif%>
<%if [{!!category_radio}match[Stat/1s]] %>
|tc-center tc-max-width-80 table-caption-top|k
|A|B|C|lorem|h
| 1| 2| 3|<<.lorem>>|
|<$radio field="category_radio" value="Total"> Total </$radio> - <$radio field="category_radio" value="Stat/1s"> Stat/1s </$radio> - <$radio field="category_radio" value="Stat/60s"> Stat/60s </$radio> - Test Table|c
<%endif%>
<%if [{!!category_radio}match[Stat/60s]] %>
|tc-center tc-max-width-80 table-caption-top|k
|A|B|C|lorem|h
| 60| 120| 180|<<.lorem>>|
|<$radio field="category_radio" value="Total"> Total </$radio> - <$radio field="category_radio" value="Stat/1s"> Stat/1s </$radio> - <$radio field="category_radio" value="Stat/60s"> Stat/60s </$radio> - Test Table|c
<%endif%>
</div>