mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-29 11:30:28 +00:00
4f4e055091
* add a search button to the control panel tiddler fields tab * minor update * use v5.3.x syntax * use tf. prefix for the function * make show-filter-count a global macro * make table header translatable * add documentation * show-filter-count code cleanup * remove the table-header * remove erroneous caption field
31 lines
717 B
Plaintext
31 lines
717 B
Plaintext
title: $:/snippets/allfields
|
|
|
|
\whitespace trim
|
|
|
|
\procedure lingo-base() $:/language/Docs/Fields/
|
|
|
|
\function tf.getLingoText() [<lingo-base>] [<title>] +[join[]get[text]]
|
|
|
|
\procedure renderfield(title)
|
|
<tr class="tc-view-field">
|
|
<td class="tc-view-field-name">
|
|
''<$text text=<<title>>/>'':
|
|
</td>
|
|
<td class="tc-view-field-value">
|
|
//<<tf.getLingoText>>//
|
|
</td>
|
|
<td class="tc-view-field-list">
|
|
<$macrocall $name="show-filter-count" filter=`[has[$(title)$]sort[]]`>>
|
|
</td>
|
|
</tr>
|
|
\end
|
|
|
|
<table class="tc-view-field-table">
|
|
<tbody>
|
|
<!-- <<renderfieldHeader>> -->
|
|
<$list filter="[fields[]sort[title]]" variable="listItem">
|
|
<$macrocall $name="renderfield" title=<<listItem>>/>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|