mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-25 19:17:19 +00:00
9faaa31299
I'm not sure if the docs are clear, but this is quite a big deal, and along with 582b156d5f
makes working with action widgets a lot easier.
29 lines
831 B
Plaintext
29 lines
831 B
Plaintext
created: 20200131145355658
|
|
modified: 20201020112553050
|
|
tags: ActionCreateTiddlerWidget
|
|
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>> >
|
|
<$action-setfield $tiddler="$:/state/tab/sidebar--595412856" text="$:/core/ui/SideBar/Recent"/>
|
|
Create Tiddler
|
|
</$button> - Clicking this button will also open the Right sidebar: Recent tab
|