mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
b6eb6d477b
* Message tm-open-window enhancements * Add Messages tiddler. Enhance its description.
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
caption: tm-open-window
|
|
created: 20160424181447704
|
|
modified: 20211117042202771
|
|
tags: Messages
|
|
title: WidgetMessage: tm-open-window
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The `tm-open-window` [[message|Message]] opens a tiddler in a new //browser// window. If no parameters are specified, the current tiddler is opened in a new window. Similiar to `tm-modal` any additional parameters passed via the <<.param "paramObject">> are provided as variables to the new window.
|
|
|
|
|!Name |!Description |
|
|
|param |Title of the tiddler to be opened in a new browser window, defaults to <<.var "currentTiddler">> if empty |
|
|
|template |Template in which the tiddler will be rendered in |
|
|
|windowTitle |Title string for the opened window |
|
|
|width |Width of the new browser window |
|
|
|height |Height of the new browser window |
|
|
|paramObject |Hashmap of variables to be provided to the modal, contains all extra parameters passed to the widget sending the message. |
|
|
|
|
The `tm-open-window` message is best generated with the ActionSendMessageWidget, which in turn is triggered by a widget such as the ButtonWidget. It is handled by the core itself.
|
|
|
|
<<.tip """When used with the ActionSendMessage Widget, <<.param 'param'>> becomes <<.param '$param'>> """>>
|
|
<<.tip """Parameters <<.param template>>, <<.param windowTitle>>, <<.param width>>, and <<.param height>> require the ActionSendMessageWidget.""">>
|
|
|
|
|
|
<$macrocall $name='wikitext-example-without-html'
|
|
src="""
|
|
<$button>Open Window
|
|
<$action-sendmessage
|
|
$message="tm-open-window"
|
|
$param="$:/temp/openme"
|
|
template="SampleWindowTemplate"
|
|
windowTitle="My Window Title"
|
|
width="100em"
|
|
height="50em"
|
|
something="I just in over in a variable, and boy is my Hashmap tired." />
|
|
</$button>
|
|
""" />
|
|
|