mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-11 23:09:42 +00:00
![Simon Huber](/assets/img/avatar_default.png)
* Update Basics.tid * Update new-tiddler.tid * Update new-journal.tid * Update new-image.tid * Update new-here.tid * Update new-journal-here.tid * Update NewJournalTags.tid * Update NewJournalTags.tid
25 lines
867 B
Plaintext
25 lines
867 B
Plaintext
title: $:/core/ui/Buttons/new-here
|
|
tags: $:/tags/ViewToolbar
|
|
caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}
|
|
description: {{$:/language/Buttons/NewHere/Hint}}
|
|
|
|
\whitespace trim
|
|
\define newHereActions()
|
|
<$set name="tags" filter="[<currentTiddler>] [{$:/config/NewTiddler/Tags}]">
|
|
<$action-sendmessage $message="tm-new-tiddler" tags=<<tags>>/>
|
|
</$set>
|
|
\end
|
|
\define newHereButton()
|
|
<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
|
{{$:/core/images/new-here-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/NewHere/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$button>
|
|
\end
|
|
<<newHereButton>>
|