mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
0671e59fed
Reasons: - can show or hide the button text with CSS (assuming tv-config-toolbar-text is yes). - can have different looking buttons in the page controls versus the view toolbar, etc - more flexibility styling the button appearance, for example you can change the text size compared to the icon size - button appearance is more themeable
17 lines
642 B
Plaintext
17 lines
642 B
Plaintext
title: $:/core/ui/Buttons/import
|
|
tags: $:/tags/PageControls
|
|
caption: {{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}
|
|
description: {{$:/language/Buttons/Import/Hint}}
|
|
|
|
<div class="tc-file-input-wrapper">
|
|
<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/import-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Import/Caption}}/></span>
|
|
</$list>
|
|
</$button>
|
|
<$browse/>
|
|
</div>
|