mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
daa24a52bd
* Update Basics.tid * Update ControlPanel.multids * Update NewJournal.multids * Create NewJournalTags.tid * Update new-tiddler.tid * Update new-image.tid * Update new-journal.tid * Update new-here.tid * Update new-journal-here.tid
25 lines
873 B
Plaintext
25 lines
873 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!!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>>
|