mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-10 22:39:43 +00:00
![Marxsal](/assets/img/avatar_default.png)
* Correct tag names. Add missing tags * Update _muritest_ by Simon Huber.tid Auto PR didn't include this. * Update _TiddlyServer_ by Matt Lauber.tid Fixing tag
29 lines
938 B
Plaintext
29 lines
938 B
Plaintext
created: 20200131150229551
|
|
modified: 20211113011129601
|
|
tags: ActionCreateTiddlerWidget Widgets
|
|
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
|
|
|
|
This example uses a base-title "base" and a template: [[ActionCreateTiddlerWidget Template]].
|
|
|
|
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>> >
|
|
<$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
|