2014-02-26 19:55:42 +00:00
created: 20140226085215941
2021-07-05 08:52:17 +00:00
modified: 20210705094948968
2014-09-11 14:52:47 +00:00
tags: Messages
2014-08-28 20:43:44 +00:00
title: WidgetMessage: tm-navigate
2014-02-26 19:55:42 +00:00
type: text/vnd.tiddlywiki
2014-09-10 23:06:19 +00:00
caption: tm-navigate
2014-02-26 19:55:42 +00:00
2014-08-28 20:43:44 +00:00
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`.
2014-02-26 19:55:42 +00:00
The navigate message requires the following properties on the `event` object:
|!Name |!Description |
|navigateTo |Title of the tiddler that is being navigated |
|navigateFromTitle |Title of the tiddler from which the navigation was initiated |
|navigateFromClientRect |Bounding rectangle in client page coordinates of the element initiating the navigation |
2021-07-14 08:21:37 +00:00
|navigateFromClientTop |<<<<.from-version "5.2.0">> Y coordinate of top edge of bounding client rectangle |
|navigateFromClientLeft |<<<<.from-version "5.2.0">> X coordinate of left edge of bounding client rectangle |
|navigateFromClientWidth |<<<<.from-version "5.2.0">> Width of bounding client rectangle |
|navigateFromClientRight |<<<<.from-version "5.2.0">> X coordinate of right edge of bounding client rectangle |
|navigateFromClientBottom |<<<<.from-version "5.2.0">> Y coordinate of bottom edge of bounding client rectangle |
|navigateFromClientHeight |<<<<.from-version "5.2.0">> Height of bounding client rectangle |
2014-02-26 19:55:42 +00:00
|navigateSuppressNavigation |''true'' causes the new tiddler to only be added to the story, and not the history stack. This suppresses the scrolling associated with navigating to a tiddler |
2014-10-30 10:35:01 +00:00
The navigate message can be generated by the LinkWidget, the ActionNavigateWidget and the ButtonWidget, and is handled by the NavigatorWidget.