1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-07 14:23:53 +00:00

Real estate demo: Make columns hideable

This commit is contained in:
jeremy@jermolene.com 2023-02-28 09:36:02 +00:00
parent 3be822f926
commit 6beb058e2d

View File

@ -7,31 +7,56 @@ This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (ide
<$let <$let
schema={{$:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema}} schema={{$:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema}}
> >
<div>
<$list filter="[<schema>jsonindexes[fields]]" variable="index">
<$let
config={{{ [<schema>jsonget[fields],<index>,[name]addprefix[$:/config/geospatial/demo/real-estate-demo/]] }}}
>
<div>
<$checkbox tiddler=<<config>> field="visible" checked="yes" unchecked="no" default="yes">
<$text text={{{ [<schema>jsonget[fields],<index>,[caption]] }}}/>
</$checkbox>
</div>
</$let>
</$list>
</div>
<table> <table>
<thead> <thead>
<tr> <tr>
<$list filter="[<schema>jsonindexes[fields]]" variable="index"> <$list filter="[<schema>jsonindexes[fields]]" variable="index">
<th> <$let
<$text text={{{ [<schema>jsonget[fields],<index>,[caption]] }}}/> config={{{ [<schema>jsonget[fields],<index>,[name]addprefix[$:/config/geospatial/demo/real-estate-demo/]] }}}
</th> >
</$list> <$list filter="[<config>get[visible]else[yes]match[yes]]" variable="ignore">
</tr> <th>
</thead> <$text text={{{ [<schema>jsonget[fields],<index>,[caption]] }}}/>
<tbody> </th>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]"> </$list>
<tr> </$let>
<$list filter="[<schema>jsonindexes[fields]]" variable="index"> </$list>
<td> </tr>
<$let </thead>
fieldname={{{ [<schema>jsonget[fields],<index>,[name]] }}} <tbody>
> <$list filter="[all[shadows+tiddlers]tag[$:/tags/GeoMarker]sort[caption]]">
<$text text={{{ [<currentTiddler>get<fieldname>] }}}/> <tr>
</$let> <$list filter="[<schema>jsonindexes[fields]]" variable="index">
</td> <$let
</$list> config={{{ [<schema>jsonget[fields],<index>,[name]addprefix[$:/config/geospatial/demo/real-estate-demo/]] }}}
</tr> >
</$list> <$list filter="[<config>get[visible]else[yes]match[yes]]" variable="ignore">
</tbody> <td>
<$let
fieldname={{{ [<schema>jsonget[fields],<index>,[name]] }}}
>
<$text text={{{ [<currentTiddler>get<fieldname>] }}}/>
</$let>
</td>
</$list>
</$let>
</$list>
</tr>
</$list>
</tbody>
</table> </table>
</$let> </$let>