2014-02-26 19:55:42 +00:00
|
|
|
created: 20140226194405353
|
2014-07-24 22:07:02 +00:00
|
|
|
modified: 20140724194729158
|
2014-02-26 19:55:42 +00:00
|
|
|
tags: message navigator-message
|
2014-08-28 20:43:44 +00:00
|
|
|
title: WidgetMessage: tm-new-tiddler
|
2014-02-26 19:55:42 +00:00
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
The new tiddler message creates a new draft tiddler and adds it to the current story. It requires the following properties on the `event` object:
|
|
|
|
|
|
|
|
|!Name |!Description |
|
|
|
|
|param |Optional title of a tiddler to use as a template for the new tiddler |
|
|
|
|
|navigateFromTitle |Title of the tiddler from which the navigation to the new tiddler was initiated |
|
|
|
|
|
|
|
|
The new tiddler message is usually generated with the LinkWidget or the ButtonWidget and is handled by the NavigatorWidget.
|
2014-07-24 22:07:02 +00:00
|
|
|
|
|
|
|
! Example
|
|
|
|
|
|
|
|
To make a button that creates new tiddlers tagged "task", create a tiddler called "TaskTemplate" with that tag, and then make your button like this:
|
|
|
|
|
|
|
|
```
|
2014-08-28 20:43:44 +00:00
|
|
|
<$button message="tm-new-tiddler" param="TaskTemplate">New Task</$button>
|
2014-07-24 22:07:02 +00:00
|
|
|
```
|