2020-04-15 14:51:21 +00:00
|
|
|
created: 20200131150229551
|
2020-10-23 15:23:17 +00:00
|
|
|
modified: 20201020112544146
|
2020-04-15 14:51:21 +00:00
|
|
|
tags: ActionCreateTiddlerWidget
|
|
|
|
title: ActionCreateTiddlerWidget Example 4
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
\define testCreate()
|
|
|
|
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template" aa="new field aa" bb="new field bb" />
|
|
|
|
\end
|
|
|
|
|
2021-06-01 08:41:14 +00:00
|
|
|
This example uses a base-title "base" and a template: [[ActionCreateTiddlerWidget Template]].
|
2020-04-15 14:51:21 +00:00
|
|
|
|
|
|
|
There will be new fields "aa" and "bb" which are added to the new tiddlers.
|
|
|
|
|
|
|
|
```
|
|
|
|
\define testCreate()
|
|
|
|
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template" aa="new field aa" bb="new field bb" />
|
|
|
|
\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
|