2016-04-25 07:28:42 +00:00
caption: tm-open-window
created: 20160424181447704
2022-02-20 11:23:27 +00:00
modified: 20220219125413255
2016-04-25 07:28:42 +00:00
tags: Messages
title: WidgetMessage: tm-open-window
type: text/vnd.tiddlywiki
2022-02-20 11:23:27 +00:00
The `tm-open-window` [[message|Messages]] 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.
2016-04-25 07:28:42 +00:00
|!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 |
2019-07-04 14:59:34 +00:00
|windowTitle |Title string for the opened window |
2016-04-25 07:28:42 +00:00
|width |Width of the new browser window |
|height |Height of the new browser window |
2022-02-20 11:23:27 +00:00
|left|<<.from-version "5.2.2">> Optional, left position of new browser window|
|top|<<.from-version "5.2.2">> Optional, top position of new browser window|
2021-11-17 12:13:01 +00:00
|paramObject |Hashmap of variables to be provided to the modal, contains all extra parameters passed to the widget sending the message. |
2016-04-25 07:28:42 +00:00
2021-11-17 12:13:01 +00:00
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.
2022-02-20 11:23:27 +00:00
<<.tip """When used with the ActionSendMessageWidget, <<.param 'param'>> becomes <<.param '$param'>> """>>
<<.tip """Parameters <<.param template>>, <<.param windowTitle>>, <<.param width>>, <<.param height>>, <<.param left>> and <<.param top>> require the ActionSendMessageWidget.""">>
2021-11-17 12:13:01 +00:00
<$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>
""" />
2016-04-25 07:28:42 +00:00