2020-04-15 14:51:21 +00:00
|
|
|
created: 20200131144828713
|
2021-11-13 08:48:52 +00:00
|
|
|
modified: 20211113011036840
|
|
|
|
tags: ActionCreateTiddlerWidget Widgets
|
2020-04-15 14:51:21 +00:00
|
|
|
title: ActionCreateTiddlerWidget Example 2
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
\define testCreate()
|
|
|
|
<$action-createtiddler $basetitle={{$:/language/DefaultNewTiddlerTitle}} $overwrite="yes"/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
This example will use the base title defined in [[$:/language/DefaultNewTiddlerTitle]].
|
|
|
|
|
|
|
|
It will overwrite the tiddler, if the button is clicked several times.
|
|
|
|
|
|
|
|
```
|
|
|
|
\define testCreate()
|
|
|
|
<$action-createtiddler $basetitle={{$:/language/DefaultNewTiddlerTitle}} $overwrite="yes"/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$button actions=<<testCreate>> >
|
|
|
|
Create Tiddler
|
|
|
|
</$button>
|
|
|
|
```
|
|
|
|
|
|
|
|
<$button actions=<<testCreate>> >
|
2020-10-23 15:23:17 +00:00
|
|
|
<$action-setfield $tiddler="$:/state/tab/sidebar--595412856" text="$:/core/ui/SideBar/Recent"/>
|
2020-04-15 14:51:21 +00:00
|
|
|
Create Tiddler
|
|
|
|
</$button> - Clicking this button, will also open the Right sidebar: Recent tab
|