mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-30 05:01:41 +00:00
Add a search button to the control panel tiddler fields tab (#8157)
* 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
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
title: $:/core/macros/show-filter-count
|
||||
tags: $:/tags/Macro $:/tags/Global
|
||||
|
||||
\whitespace trim
|
||||
|
||||
\procedure show-filter-count(filter)
|
||||
<$button class="tc-btn-invisible">
|
||||
<$action-setfield $tiddler="$:/temp/advancedsearch" $value=<<filter>>/>
|
||||
<$action-setfield $tiddler="$:/temp/advancedsearch/input" $value=<<filter>>/>
|
||||
<$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
|
||||
<$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/>
|
||||
<$action-navigate $to="$:/AdvancedSearch"/>
|
||||
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
|
||||
<span class="tc-small-gap-right">''<$count filter=<<filter>>/>''</span>
|
||||
{{$:/core/images/advanced-search-button}}
|
||||
</$button>
|
||||
\end
|
||||
Reference in New Issue
Block a user