1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 02:20:28 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget_Example.tid
btheado 6505e4610f
Use the testcase widget for $action-createtiddler examples (#8232)
* Use the testcase widget for the $action-createtiddler widget examples

* Use procedure instead of macros for $action-createtiddler examples
2024-09-10 11:49:04 +01:00

24 lines
914 B
Plaintext

created: 20161020153426686
modified: 20240602160452171
tags: ActionCreateTiddlerWidget
title: ActionCreateTiddlerWidget Example
type: text/vnd.tiddlywiki
<$testcase>
<$data title=Description text="Create a new page control button"/>
<$data title=Narrative text="""Use the $action-createtiddler widget to create and open a new, non-functional page control button tiddler"""/>
<$data title=Output text="""\procedure testCreate()
<$action-createtiddler $basetitle="Homemade Button" tags="$:/tags/PageControls" text={{$:/state/new-button-caption}}>
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
\end
{{$:/core/ui/SideBarSegments/page-controls}}
Caption for new button: <$edit-text tiddler="$:/state/new-button-caption" tag="input" default=""/>
<$button actions=<<testCreate>> >
Create Tiddler
</$button>"""/>
<$data title="$:/state/new-button-caption" text="button text "/>
</$testcase>