2020-04-15 14:51:21 +00:00
|
|
|
created: 20200131145355658
|
2021-11-13 08:48:52 +00:00
|
|
|
modified: 20211113011111052
|
2023-01-17 17:29:08 +00:00
|
|
|
tags: ActionCreateTiddlerWidget
|
2020-04-15 14:51:21 +00:00
|
|
|
title: ActionCreateTiddlerWidget Example 3
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
\define testCreate()
|
|
|
|
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template"/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
This example will uses a base-title and a template: [[ActionCreateTiddlerWidget Template]]
|
|
|
|
|
|
|
|
It will create: "base", "base 1", "base 2" and so on
|
|
|
|
|
|
|
|
```
|
|
|
|
\define testCreate()
|
|
|
|
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template"/>
|
|
|
|
\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
|
2021-06-01 08:41:14 +00:00
|
|
|
</$button> - Clicking this button will also open the Right sidebar: Recent tab
|