mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-30 23:23:02 +00:00 
			
		
		
		
	 b97336f171
			
		
	
	b97336f171
	
	
	
		
			
			Give the toolbar buttons for control panel, advanced search and tag manager the selected state when the corresponding tiddlers are open in the story river.
		
			
				
	
	
		
			20 lines
		
	
	
		
			892 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			892 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| title: $:/core/ui/Buttons/advanced-search
 | |
| tags: $:/tags/PageControls
 | |
| caption: {{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}
 | |
| description: {{$:/language/Buttons/AdvancedSearch/Hint}}
 | |
| 
 | |
| \define control-panel-button(class)
 | |
| <$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
 | |
| <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
 | |
| {{$:/core/images/advanced-search-button}}
 | |
| </$list>
 | |
| <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
 | |
| <span class="tc-btn-text"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span>
 | |
| </$list>
 | |
| </$button>
 | |
| \end
 | |
| 
 | |
| <$list filter="[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]" emptyMessage=<<control-panel-button>>>
 | |
| <<control-panel-button "tc-selected">>
 | |
| </$list>
 |