2016-04-25 07:28:42 +00:00
caption: tm-open-window
created: 20160424181447704
2022-03-02 17:59:36 +00:00
modified: 20220227212704337
2016-04-25 07:28:42 +00:00
tags: Messages
title: WidgetMessage: tm-open-window
type: text/vnd.tiddlywiki
2021-11-17 12:13:01 +00:00
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.
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 |
2022-03-02 17:59:36 +00:00
|template |Template tiddler used to render the tiddler in the new browser window |
|windowTitle |Title for the new browser window |
|width |Width of the new browser window (in pixels without units) |
|height |Height of the new browser window (in pixels without units) |
|paramObject |Hashmap of variables to be provided to the template, contains all extra parameters passed to the widget sending the message |
2016-04-25 07:28:42 +00:00
2022-03-02 17:59:36 +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. The message is handled by the core itself.
2021-11-17 12:13:01 +00:00
2022-03-02 17:59:36 +00:00
<<.tip """When used with the ActionSendMessageWidget, <<.param 'param'>> becomes <<.param '$param'>> """>>
<<.tip """The parameters <<.param template>>, <<.param windowTitle>>, <<.param width>>, and <<.param height>> ''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"
2022-03-02 17:59:36 +00:00
width="640"
height="480"
something="This is my new window. There are many like it, but this one is mine." />
2021-11-17 12:13:01 +00:00
</$button>
""" />
2016-04-25 07:28:42 +00:00