mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 16:24:51 +00:00
22802b4be8
* add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * add $template and $overwrite parameter * documentation for new parameters + 4 new examples * remove unwanted files
29 lines
937 B
Plaintext
29 lines
937 B
Plaintext
created: 20200131150229551
|
|
modified: 20200131152051626
|
|
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
|
|
|
|
This example will 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-1206596165" text="$:/core/ui/SideBar/Recent"/>
|
|
Create Tiddler
|
|
</$button> - Clicking this button, will also open the Right sidebar: Recent tab
|