mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 16:24:51 +00:00
70984aa39f
This is a basic “new here” tiddler toolbar button that just creates a new tiddler tagged with the title of the current tiddler. @pmario is there anything else required?
15 lines
638 B
Plaintext
15 lines
638 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}}
|
|
|
|
<$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-new-tiddler" tags=<<currentTiddler>>/>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/new-here-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<$text text={{$:/language/Buttons/NewHere/Caption}}/>
|
|
</$list>
|
|
</$button>
|