2020-04-15 14:51:21 +00:00
created: 20200131145355658
2024-09-10 10:49:04 +00:00
modified: 20240602155233116
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
2024-09-10 10:49:04 +00:00
<$testcase>
<$data title=Description text="Template and custom base title"/>
<$data title=Narrative text="""The $action-createtiddler widget in this example uses the basetitle attribute and template: [[ActionCreateTiddlerWidget Template]].
2020-04-15 14:51:21 +00:00
2024-09-10 10:49:04 +00:00
Clicking the button will create: "base", "base 1", "base 2" and so on
"""/>
<$data $tiddler="ActionCreateTiddlerWidget Template"/>
<$data title=Output text="""\procedure testCreate()
2020-04-15 14:51:21 +00:00
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template"/>
\end
<$button actions=<<testCreate>> >
Create Tiddler
2024-09-10 10:49:04 +00:00
</$button>"""/>
</$testcase>