1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-11 23:36:05 +00:00

Rename "tw-*" messages to "tm-*"

This commit is contained in:
Jermolene
2014-08-28 21:43:44 +01:00
parent db40ac85c2
commit 2f69ea362c
106 changed files with 211 additions and 211 deletions

View File

@@ -5,7 +5,7 @@ title: Features
type: text/vnd.tiddlywiki
\define alert-demo()
<$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tw-add-tag" param="$:/tags/Alert">alerts</$button></$set></$fieldmangler>
<$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tm-add-tag" param="$:/tags/Alert">alerts</$button></$set></$fieldmangler>
\end
* The ability to save changes on almost any desktop HTML5 compatible-browser, with custom apps to enable [[Saving on iPad/iPhone]] and [[Android|Saving on Android]], and a cross-platform [[Firefox extension|Saving with TiddlyFox]] that even runs on Android
* Support for pluggable themes and colour palettes (see the [[control panel|$:/ControlPanel]])
@@ -15,11 +15,11 @@ type: text/vnd.tiddlywiki
* Integrated [[AES encryption|Saving with Encryption]]
* TiddlyWiki isn't just a wiki - you can build custom applications with it like this TaskManagementExample
* Full internationalization support, with TiddlyWiki itself available in several languages (see the [[control panel|$:/ControlPanel]])
* Familiar user interface elements like <<alert-demo>>, <$button message="tw-modal" param="SampleWizard">wizards</$button> and <$button message="tw-notify" param="SampleNotification">notifications</$button>
* Familiar user interface elements like <<alert-demo>>, <$button message="tm-modal" param="SampleWizard">wizards</$button> and <$button message="tm-notify" param="SampleNotification">notifications</$button>
* Easily [[import|ImportTiddlers]] content via drag and drop, copy and paste, or browsing for local files
* Clone existing tiddlers (for example, <$button message="tw-new-tiddler" param=<<currentTiddler>>>clone this tiddler</$button>)
* Clone existing tiddlers (for example, <$button message="tm-new-tiddler" param=<<currentTiddler>>>clone this tiddler</$button>)
* TiddlyWiki is [[surprisingly scalable|Scalability]] to many thousands of tiddlers and megabytes of content
* Try out the <$button message="tw-full-screen">full screen support</$button>
* Try out the <$button message="tm-full-screen">full screen support</$button>
* Explore the [[D3.js visualisation plugin|http://tiddlywiki.com/d3demo.html]]
* [[CodeMirror support via a plugin|http://tiddlywiki.com/codemirrordemo.html]]
* [[Markdown support via a plugin|http://tiddlywiki.com/markdowndemo.html]]

View File

@@ -14,7 +14,7 @@ This is version <<version-link>> of ~TiddlyWiki, a major reboot designed [[for t
<div class="tc-message-box">
<a class="tw-message-icon" href="http://tiddlywiki.com/" target="_blank">{{TiddlyWiki Classic.png}}</a>
<a class="tc-message-icon" href="http://tiddlywiki.com/" target="_blank">{{TiddlyWiki Classic.png}}</a>
!! TiddlyWikiClassic

View File

@@ -183,30 +183,30 @@ $body$
">>
## <<toc-heading "Widget Messages" "
## WidgetMessages
## [[tw-cancel-tiddler|WidgetMessage: tw-cancel-tiddler]]
## [[tw-clear-password|WidgetMessage: tw-clear-password]]
## [[tw-close-all-tiddlers|WidgetMessage: tw-close-all-tiddlers]]
## [[tw-close-other-tiddlers|WidgetMessage: tw-close-other-tiddlers]]
## [[tw-close-tiddler|WidgetMessage: tw-close-tiddler]]
## [[tw-delete-tiddler|WidgetMessage: tw-delete-tiddler]]
## [[tw-download-file|WidgetMessage: tw-download-file]]
## [[tw-edit-tiddler|WidgetMessage: tw-edit-tiddler]]
## [[tw-full-screen|WidgetMessage: tw-full-screen]]
## [[tw-home|WidgetMessage: tw-home]]
## [[tw-import-tiddlers|WidgetMessage: tw-import-tiddlers]]
## [[tw-login|WidgetMessage: tw-login]]
## [[tw-logout|WidgetMessage: tw-logout]]
## [[tw-modal|WidgetMessage: tw-modal]]
## [[tw-navigate|WidgetMessage: tw-navigate]]
## [[tw-new-tiddler|WidgetMessage: tw-new-tiddler]]
## [[tw-notify|WidgetMessage: tw-notify]]
## [[tw-perform-import|WidgetMessage: tw-perform-import]]
## [[tw-permalink|WidgetMessage: tw-permalink]]
## [[tw-permaview|WidgetMessage: tw-permaview]]
## [[tw-save-tiddler|WidgetMessage: tw-save-tiddler]]
## [[tw-save-wiki|WidgetMessage: tw-save-wiki]]
## [[tw-server-refresh|WidgetMessage: tw-server-refresh]]
## [[tw-set-password|WidgetMessage: tw-set-password]]
## [[tm-cancel-tiddler|WidgetMessage: tm-cancel-tiddler]]
## [[tm-clear-password|WidgetMessage: tm-clear-password]]
## [[tm-close-all-tiddlers|WidgetMessage: tm-close-all-tiddlers]]
## [[tm-close-other-tiddlers|WidgetMessage: tm-close-other-tiddlers]]
## [[tm-close-tiddler|WidgetMessage: tm-close-tiddler]]
## [[tm-delete-tiddler|WidgetMessage: tm-delete-tiddler]]
## [[tm-download-file|WidgetMessage: tm-download-file]]
## [[tm-edit-tiddler|WidgetMessage: tm-edit-tiddler]]
## [[tm-full-screen|WidgetMessage: tm-full-screen]]
## [[tm-home|WidgetMessage: tm-home]]
## [[tm-import-tiddlers|WidgetMessage: tm-import-tiddlers]]
## [[tm-login|WidgetMessage: tm-login]]
## [[tm-logout|WidgetMessage: tm-logout]]
## [[tm-modal|WidgetMessage: tm-modal]]
## [[tm-navigate|WidgetMessage: tm-navigate]]
## [[tm-new-tiddler|WidgetMessage: tm-new-tiddler]]
## [[tm-notify|WidgetMessage: tm-notify]]
## [[tm-perform-import|WidgetMessage: tm-perform-import]]
## [[tm-permalink|WidgetMessage: tm-permalink]]
## [[tm-permaview|WidgetMessage: tm-permaview]]
## [[tm-save-tiddler|WidgetMessage: tm-save-tiddler]]
## [[tm-save-wiki|WidgetMessage: tm-save-wiki]]
## [[tm-server-refresh|WidgetMessage: tm-server-refresh]]
## [[tm-set-password|WidgetMessage: tm-set-password]]
">>
## <<toc-heading "Filter Operators" "
## FilterOperators

View File

@@ -16,7 +16,7 @@ Click this link to get started: HelloThere
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
<div>
! <$button message="tw-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
<$transclude/>
</div>
@@ -34,7 +34,7 @@ Click this link to get started: HelloThere
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
<div>
! <$button message="tw-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
<$transclude/>

View File

@@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
Alerts are displayed as yellow boxes overlaying the main TiddlyWiki window. Each one corresponds to a tiddler with the tag [[$:/tags/Alert]]. Clicking the delete icon on an alert deletes the corresponding tiddler.
Here's a demo <$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tw-add-tag" param="$:/tags/Alert">alert</$button></$set></$fieldmangler>.
Here's a demo <$fieldmangler tiddler="SampleAlert"><$set name="currentTiddler" value="SampleAlert"><$button message="tm-add-tag" param="$:/tags/Alert">alert</$button></$set></$fieldmangler>.
Alert tiddlers should have the following fields:

View File

@@ -8,9 +8,9 @@ Several features work in concert to give the desired behaviour for draft tiddler
* The ListWidget can optionally render draft tiddlers through a different template
* The NavigatorWidget incorporates handlers for the following events:
** `tw-new-tiddler` for creating a new tiddler in draft mode
** `tw-edit-tiddler` for moving a tiddler into edit mode
** `tw-cancel-tiddler` for cancelling a tiddler out of edit mode
** `tw-save-tiddler` for saving a draft tiddler
** `tm-new-tiddler` for creating a new tiddler in draft mode
** `tm-edit-tiddler` for moving a tiddler into edit mode
** `tm-cancel-tiddler` for cancelling a tiddler out of edit mode
** `tm-save-tiddler` for saving a draft tiddler
* Draft tiddlers are automatically excluded from search operations

View File

@@ -12,7 +12,7 @@ The EncryptionMechanism is implemented with the following elements:
* A PasswordVault within the BootMechanism that holds the current encryption password
* The ability of the BootMechanism to read a block of encrypted tiddlers from the TiddlyWiki file, to prompt the user for a password, and to decrypt the tiddlers
* Handlers for the messages [[WidgetMessage: tw-set-password]] and [[WidgetMessage: tw-clear-password]] that handle the user interface for password changes
* Handlers for the messages [[WidgetMessage: tm-set-password]] and [[WidgetMessage: tm-clear-password]] that handle the user interface for password changes
* The EncryptWidget within the main file template that encrypts a filtered list of tiddlers with the currently held password
* The [[$:/isEncrypted]] tiddler that contains "yes" or "no" according to whether there is a password in the password vault
** The availability of this tiddler allows the RevealWidget to be used to selectively display user interface elements according to whether encryption is in force

View File

@@ -13,7 +13,7 @@ The history list also maintains the field ''current-tiddler'' that contains the
```
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
<$button message="tw-close-tiddler" class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>&#x2713;</$reveal></$link>
<$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>&#x2713;</$reveal></$link>
</$list>
```
@@ -22,6 +22,6 @@ Which renders the same as the "Open" sidebar tab, with the addition of a tick ag
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
<$button message="tw-close-tiddler" class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>&#x2713;</$reveal></$link>
<$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/> <$reveal type="match" state="$:/HistoryList!!current-tiddler" text=<<currentTiddler>>>&#x2713;</$reveal></$link>
</$list>

View File

@@ -28,7 +28,7 @@ Note how this approach makes the ''open'' tab in the sidebar very easy to implem
```
<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" storyview="pop">
<$button message="tw-close-tiddler" class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/></$link>
<$button message="tm-close-tiddler" class="tc-btn-invisible tc-btn-mini">&times;</$button> <$link to={{!!title}}><$view field="title"/></$link>
</$list>
```

View File

@@ -1,9 +1,9 @@
created: 20140819110529062
modified: 20140826110529062
tags: message
title: WidgetMessage: tw-browser-refresh
title: WidgetMessage: tm-browser-refresh
type: text/vnd.tiddlywiki
The `tw-browser-refresh` message refreshes the page, causing the re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object.
The `tm-browser-refresh` message refreshes the page, causing the re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object.
The refresh message is usually generated with the ButtonWidget and is handled by the core.

View File

@@ -1,10 +1,10 @@
created: 20140226193622350
modified: 20140226193906089
tags: message navigator-message
title: WidgetMessage: tw-cancel-tiddler
title: WidgetMessage: tm-cancel-tiddler
type: text/vnd.tiddlywiki
The `tw-cancel-tiddler` message abandons the changes in a draft tiddler. It requires the following properties on the `event` object:
The `tm-cancel-tiddler` message abandons the changes in a draft tiddler. It requires the following properties on the `event` object:
|!Name |!Description |
|param |Title of the tiddler that is being cancelled out of edit mode |

View File

@@ -1,9 +1,9 @@
created: 20140226084018038
modified: 20140226084916556
tags: message
title: WidgetMessage: tw-clear-password
title: WidgetMessage: tm-clear-password
type: text/vnd.tiddlywiki
The `tw-clear-password` message clears the current password from the password vault, clearing the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
The `tm-clear-password` message clears the current password from the password vault, clearing the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
This message is typically generated with the ButtonWidget, and is handled by the core itself.

View File

@@ -1,7 +1,7 @@
created: 20140226194242809
modified: 20140226194341303
tags: message navigator-message
title: WidgetMessage: tw-close-all-tiddlers
title: WidgetMessage: tm-close-all-tiddlers
type: text/vnd.tiddlywiki
The close all tiddlers message empties the story list.

View File

@@ -1,10 +1,10 @@
created: 20140302183306544
modified: 20140302183352966
tags: message navigator-message
title: WidgetMessage: tw-close-other-tiddlers
title: WidgetMessage: tm-close-other-tiddlers
type: text/vnd.tiddlywiki
The `tw-close-other-tiddlers` message removes all but a specified tiddler from the story list. It requires the following properties on the `event` object:
The `tm-close-other-tiddlers` message removes all but a specified tiddler from the story list. It requires the following properties on the `event` object:
|!Name |!Description |
|param |Title of the tiddler that is not to be closed |

View File

@@ -1,10 +1,10 @@
created: 20140226193940778
modified: 20140226194227227
tags: message navigator-message
title: WidgetMessage: tw-close-tiddler
title: WidgetMessage: tm-close-tiddler
type: text/vnd.tiddlywiki
The `tw-close-tiddler` message removes a specified tiddler from the story list. It requires the following properties on the `event` object:
The `tm-close-tiddler` message removes a specified tiddler from the story list. It requires the following properties on the `event` object:
|!Name |!Description |
|param |Title of the tiddler that is to be closed |

View File

@@ -1,10 +1,10 @@
created: 20140226090324129
modified: 20140226090441236
tags: message navigator-message
title: WidgetMessage: tw-delete-tiddler
title: WidgetMessage: tm-delete-tiddler
type: text/vnd.tiddlywiki
The `tw-delete-tiddler` message deletes the specified tiddler and removes it from the current story. If the tiddler is a draft then it also deletes the tiddler specified in the `draft.of` field. The delete tiddler message requires the following properties on the `event` object:
The `tm-delete-tiddler` message deletes the specified tiddler and removes it from the current story. If the tiddler is a draft then it also deletes the tiddler specified in the `draft.of` field. The delete tiddler message requires the following properties on the `event` object:
|!Name |!Description |
|param |Title of the tiddler that is to be deleted |

View File

@@ -1,7 +1,7 @@
created: 20140811112201235
modified: 20140811115140378
tags: message
title: WidgetMessage: tw-download-file
title: WidgetMessage: tm-download-file
type: text/vnd.tiddlywiki
The download file message causes the current saver module to prompt the user to download the result of parsing a specified template tiddler as a file. It requires the following properties on the `event` object:

View File

@@ -1,10 +1,10 @@
created: 20140226085529797
modified: 20140226090641987
tags: message navigator-message
title: WidgetMessage: tw-edit-tiddler
title: WidgetMessage: tm-edit-tiddler
type: text/vnd.tiddlywiki
The `tw-edit-tiddler` message replaces the specified tiddler in the current story with a draft version of itself. It requires the following properties on the `event` object:
The `tm-edit-tiddler` message replaces the specified tiddler in the current story with a draft version of itself. It requires the following properties on the `event` object:
|!Name |!Description |
|param |Title of the tiddler that is being switched to edit mode |

View File

@@ -1,7 +1,7 @@
created: 20140811112400855
modified: 20140811113627373
tags: message
title: WidgetMessage: tw-full-screen
title: WidgetMessage: tm-full-screen
type: text/vnd.tiddlywiki
The fullscreen message toggles the "fullscreen" mode of the browser, if it supports it.

View File

@@ -1,9 +1,9 @@
created: 20140819110529062
modified: 20140819110529062
tags: message
title: WidgetMessage: tw-home
title: WidgetMessage: tm-home
type: text/vnd.tiddlywiki
The `tw-home` message closes any open tiddlers and re-opens the default tiddlers set in [[$:/DefaultTiddlers]]. It also remove any [[permalink|PermaLinks]] from the browser address bar. It does not require any properties on the `event` object.
The `tm-home` message closes any open tiddlers and re-opens the default tiddlers set in [[$:/DefaultTiddlers]]. It also remove any [[permalink|PermaLinks]] from the browser address bar. It does not require any properties on the `event` object.
The home message is usually generated with the ButtonWidget and is handled by the core.

View File

@@ -1,10 +1,10 @@
created: 20140716084658099
modified: 20140716195055502
tags: message navigator-message
title: WidgetMessage: tw-import-tiddlers
title: WidgetMessage: tm-import-tiddlers
type: text/vnd.tiddlywiki
The `tw-import-tiddlers` message inserts a list of tiddlers into the pending import tiddler [[$:/Import]]. It also applies any active ''upgrader'' modules to each tiddler as it arrives (see the UpgradeMechanism for more details).
The `tm-import-tiddlers` message inserts a list of tiddlers into the pending import tiddler [[$:/Import]]. It also applies any active ''upgrader'' modules to each tiddler as it arrives (see the UpgradeMechanism for more details).
|!Name |!Description |
|param |JSON text of the array of tiddlers to be imported |
@@ -13,7 +13,7 @@ The import tiddlers message is usually generated with the DropzoneWidget or the
! Configuration Variables
The variable `tw-auto-open-on-import` controls whether the `tw-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
The variable `tw-auto-open-on-import` controls whether the `tm-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
* ''no'': The pending import tiddler is not opened in the story
* ''yes'': The pending import tiddler is opened in th story. This is the default

View File

@@ -1,7 +1,7 @@
created: 20140811112445887
modified: 20140811113336694
tags: message
title: WidgetMessage: tw-login
title: WidgetMessage: tm-login
type: text/vnd.tiddlywiki
The login message prompts the user for a username and password and attempts to login to the current serverside host. The tiddler [[$:/status/IsLoggedIn]] reflects the current login status with the values "yes" or "no", and [[$:/status/UserName]] reflects the current username.

View File

@@ -1,7 +1,7 @@
created: 20140811112457311
modified: 20140811113344084
tags: message
title: WidgetMessage: tw-logout
title: WidgetMessage: tm-logout
type: text/vnd.tiddlywiki
The logout message attempts to log the user out of the current serverside host. The tiddler [[$:/status/IsLoggedIn]] reflects the current login status with the values "yes" or "no", and [[$:/status/UserName]] reflects the current username.

View File

@@ -1,7 +1,7 @@
created: 20140811112133701
modified: 20140811120203685
tags: message
title: WidgetMessage: tw-modal
title: WidgetMessage: tm-modal
type: text/vnd.tiddlywiki
The modal message displays a specified tiddler in a modal overlay that dims the main page. It requires the following properties on the `event` object:

View File

@@ -1,10 +1,10 @@
created: 20140226085215941
modified: 20140226085454346
tags: message
title: WidgetMessage: tw-navigate
title: WidgetMessage: tm-navigate
type: text/vnd.tiddlywiki
The `tw-navigate` message inserts the specified tiddler into the story and puts it at the top of the history stack. If the tiddler is not already present in the story then it will be positioned immediately after the tiddler specified in `event.navigateFromTitle`.
The `tm-navigate` message inserts the specified tiddler into the story and puts it at the top of the history stack. If the tiddler is not already present in the story then it will be positioned immediately after the tiddler specified in `event.navigateFromTitle`.
The navigate message requires the following properties on the `event` object:

View File

@@ -1,7 +1,7 @@
created: 20140226194405353
modified: 20140724194729158
tags: message navigator-message
title: WidgetMessage: tw-new-tiddler
title: WidgetMessage: tm-new-tiddler
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:
@@ -17,5 +17,5 @@ The new tiddler message is usually generated with the LinkWidget or the ButtonWi
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:
```
<$button message="tw-new-tiddler" param="TaskTemplate">New Task</$button>
<$button message="tm-new-tiddler" param="TaskTemplate">New Task</$button>
```

View File

@@ -1,7 +1,7 @@
created: 20140811112304772
modified: 20140811120248738
tags: message
title: WidgetMessage: tw-notify
title: WidgetMessage: tm-notify
type: text/vnd.tiddlywiki
The notify message briefly displays a specified tiddler as a small alert in the upper right corner of the page. It requires the following properties on the `event` object:

View File

@@ -1,7 +1,7 @@
created: 20140716084242809
modified: 20140716084341303
tags: message navigator-message
title: WidgetMessage: tw-perform-import
title: WidgetMessage: tm-perform-import
type: text/vnd.tiddlywiki
The perform import message copies tiddlers from a specified plugin into the main store. See the UpgradeMechanism for an overview of how it is used by the core.

View File

@@ -1,10 +1,10 @@
created: 20140723103751357
modified: 20140723103751357
tags: message
title: WidgetMessage: tw-permalink
title: WidgetMessage: tm-permalink
type: text/vnd.tiddlywiki
The `tw-permalink` message changes the browser address bar to form a [[permalink|PermaLinks]] to a specified tiddler, defaulting to the current tiddler.
The `tm-permalink` message changes the browser address bar to form a [[permalink|PermaLinks]] to a specified tiddler, defaulting to the current tiddler.
The permalink message supports the following properties on the `event` object:

View File

@@ -1,10 +1,10 @@
created: 20140723103751357
modified: 20140723103751357
tags: message
title: WidgetMessage: tw-permaview
title: WidgetMessage: tm-permaview
type: text/vnd.tiddlywiki
The `tw-permaview` message changes the browser address bar to form a [[permaview|PermaLinks]] that specifies all the open tiddlers in the main story river, and the tiddler to be navigated, defaulting to the current tiddler.
The `tm-permaview` message changes the browser address bar to form a [[permaview|PermaLinks]] that specifies all the open tiddlers in the main story river, and the tiddler to be navigated, defaulting to the current tiddler.
The permaview message supports the following properties on the `event` object:

View File

@@ -1,10 +1,10 @@
created: 20140226090544323
modified: 20140226090729828
tags: message navigator-message
title: WidgetMessage: tw-save-tiddler
title: WidgetMessage: tm-save-tiddler
type: text/vnd.tiddlywiki
The `tw-save-tiddler` message is applied to draft tiddlers. It saves the draft over the tiddler identified in the `draft.of` field and then deletes the draft. The save tiddler message requires the following properties on the `event` object:
The `tm-save-tiddler` message is applied to draft tiddlers. It saves the draft over the tiddler identified in the `draft.of` field and then deletes the draft. The save tiddler message requires the following properties on the `event` object:
|!Name |!Description |
|param |Title of the tiddler that is being switched out of edit mode |

View File

@@ -1,7 +1,7 @@
created: 20140811112325641
modified: 20140811115149288
tags: message
title: WidgetMessage: tw-save-wiki
title: WidgetMessage: tm-save-wiki
type: text/vnd.tiddlywiki
The save wiki message causes the current saver module to perform a full save operation. The save operation can involve user interaction.

View File

@@ -1,7 +1,7 @@
created: 20140811112435281
modified: 20140811113453568
tags: message
title: WidgetMessage: tw-server-refresh
title: WidgetMessage: tm-server-refresh
type: text/vnd.tiddlywiki
The server refresh message attempts to synchronise the latest changes to the current serverside host.

View File

@@ -1,9 +1,9 @@
created: 20140226084623977
modified: 20140226085200323
tags: message
title: WidgetMessage: tw-set-password
title: WidgetMessage: tm-set-password
type: text/vnd.tiddlywiki
The `tw-set-password` message prompts the user for a new password and stores it in the password vault, replacing any existing password. It also sets the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
The `tm-set-password` message prompts the user for a new password and stores it in the password vault, replacing any existing password. It also sets the [[$:/isEncrypted]] tiddler. See EncryptionMechanism for details.
This message is typically generated with the ButtonWidget, and is handled by the core itself.

View File

@@ -1,10 +1,10 @@
title: SampleWizard
tags: demo
subtitle: I'm a modal wizard
footer: <$button message="tw-close-tiddler">Close</$button>
footer: <$button message="tm-close-tiddler">Close</$button>
This is a modal wizard dialogue, stored in the tiddler SampleWizard.
{{Motovun Jack.jpg}}
You can <$button message="tw-modal" param="SampleWizard2">nest wizards</$button>.
You can <$button message="tm-modal" param="SampleWizard2">nest wizards</$button>.

View File

@@ -1,8 +1,8 @@
title: SampleWizard2
tags: demo
subtitle: I'm another modal wizard
footer: <$button message="tw-close-tiddler">Close</$button>
footer: <$button message="tm-close-tiddler">Close</$button>
This is another modal wizard dialogue, stored in the tiddler SampleWizard2.
You can <$button message="tw-modal" param="SampleWizard">nest wizards</$button>.
You can <$button message="tm-modal" param="SampleWizard">nest wizards</$button>.

View File

@@ -1,3 +1,3 @@
title: $:/editions/tw5.com/snippets/download-empty-button
<$button message="tw-download-file" param="$:/editions/tw5.com/download-empty" class="tc-btn-big-green">Download Empty {{$:/core/images/save-button}}</$button>
<$button message="tm-download-file" param="$:/editions/tw5.com/download-empty" class="tc-btn-big-green">Download Empty {{$:/core/images/save-button}}</$button>

View File

@@ -5,7 +5,7 @@ tags: widget
! Introduction
The browse widget displays an HTML file browser button that allows the user to choose one or more files to import. It sends a [[WidgetMessage: tw-import-tiddlers]] carrying a JSON representation of the tiddlers imported from the files up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
The browse widget displays an HTML file browser button that allows the user to choose one or more files to import. It sends a [[WidgetMessage: tm-import-tiddlers]] carrying a JSON representation of the tiddlers imported from the files up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
! Content and Attributes

View File

@@ -7,7 +7,7 @@ tags: widget
The dropzone widget creates an area into which the user can drag files and other objects. It also supports pasting via the clipboard, although browser support is currently limited.
It sends a [[WidgetMessage: tw-import-tiddlers]] carrying a JSON representation of the tiddlers to be imported up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
It sends a [[WidgetMessage: tm-import-tiddlers]] carrying a JSON representation of the tiddlers to be imported up through its parents. This message usually trapped by the NavigatorWidget which adds the tiddlers to the store and updates the story to display them.
! Content and Attributes

View File

@@ -9,10 +9,10 @@ type: text/vnd.tiddlywiki
The field mangler widget manipulates the fields and tags of a tiddler. It does so in response to the following WidgetMessages:
|!Message |!Description |
|''tw-remove-field'' |Remove the field specified in `event.param` |
|''tw-add-field'' |Add the field specified in `event.param` |
|''tw-remove-tag'' |Remove the tag specified in `event.param` |
|''tw-add-tag'' |Add the tag specified in `event.param` |
|''tm-remove-field'' |Remove the field specified in `event.param` |
|''tm-add-field'' |Add the field specified in `event.param` |
|''tm-remove-tag'' |Remove the tag specified in `event.param` |
|''tm-add-tag'' |Add the tag specified in `event.param` |
! Content and Attributes

View File

@@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
! Introduction
The link catcher widget traps [[WidgetMessage: tw-navigate]] dispatched within its child content by performing any or all of these actions:
The link catcher widget traps [[WidgetMessage: tm-navigate]] dispatched within its child content by performing any or all of these actions:
* sending a different widget message
* setting a tiddler to the title of the navigated tiddler

View File

@@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
! Introduction
The scrollable widget wraps its content in a scrollable frame. The user can scroll the contents with the mouse or with touch gestures. Code can use the [[WidgetMessage: tw-scroll]] to programmatically scroll specific DOM nodes into view.
The scrollable widget wraps its content in a scrollable frame. The user can scroll the contents with the mouse or with touch gestures. Code can use the [[WidgetMessage: tm-scroll]] to programmatically scroll specific DOM nodes into view.
! Content and Attributes
@@ -16,7 +16,7 @@ The content of the `<$scrollable>` widget is displayed within a pair of wrapper
|class |The CSS class(es) to be applied to the outer DIV |
|fallthrough |See below |
If a scrollable widget can't handle the `tw-scroll` message because the inner DIV fits within the outer DIV, then by default the message falls through to the parent widget. Setting the ''fallthrough'' attribute to `no` prevents this behaviour.
If a scrollable widget can't handle the `tm-scroll` message because the inner DIV fits within the outer DIV, then by default the message falls through to the parent widget. Setting the ''fallthrough'' attribute to `no` prevents this behaviour.
! Examples

View File

@@ -7,7 +7,7 @@ type: text/vnd.tiddlywiki
Widgets provide rich functionality within WikiText. They have the same syntax as [[HTML elements|HTML in WikiText]], but the tag name always starts with `$`. For example:
```
<$button message="tw-close-tiddler">Close Me!</$button>
<$button message="tm-close-tiddler">Close Me!</$button>
```
Note that widgets inherit all the features of [[HTML in WikiText]]: