1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-02 02:48:03 +00:00

Fix issues in WidgetMessage: tm-open-window (#6497)

This commit is contained in:
CodaCoder
2022-03-02 11:59:36 -06:00
committed by GitHub
parent 71df5162ba
commit a38b25eff5
2 changed files with 14 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
created: 20211109165213041 created: 20211109165213041
modified: 20211117224321325 modified: 20220227211343988
tags: [[Message Examples]] tags: [[Message Examples]]
title: SampleWindowTemplate title: SampleWindowTemplate
@@ -7,4 +7,4 @@ title: SampleWindowTemplate
| ''Name:'' |<$edit field=name tag="input" />| | ''Name:'' |<$edit field=name tag="input" />|
|''Rank:'' |<$edit field=rank tag="input" />| |''Rank:'' |<$edit field=rank tag="input" />|
''Variable 'something' contains:''<<something>> ''Variable 'something' contains:'' <<something>>

View File

@@ -1,6 +1,6 @@
caption: tm-open-window caption: tm-open-window
created: 20160424181447704 created: 20160424181447704
modified: 20211117042202771 modified: 20220227212704337
tags: Messages tags: Messages
title: WidgetMessage: tm-open-window title: WidgetMessage: tm-open-window
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
@@ -9,16 +9,16 @@ The `tm-open-window` [[message|Message]] opens a tiddler in a new //browser// wi
|!Name |!Description | |!Name |!Description |
|param |Title of the tiddler to be opened in a new browser window, defaults to <<.var "currentTiddler">> if empty | |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 | |template |Template tiddler used to render the tiddler in the new browser window |
|windowTitle |Title string for the opened window | |windowTitle |Title for the new browser window |
|width |Width of the new browser window | |width |Width of the new browser window (in pixels without units) |
|height |Height of the new browser window | |height |Height of the new browser window (in pixels without units) |
|paramObject |Hashmap of variables to be provided to the modal, contains all extra parameters passed to the widget sending the message. | |paramObject |Hashmap of variables to be provided to the template, 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. 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.
<<.tip """When used with the ActionSendMessage Widget, <<.param 'param'>> becomes <<.param '$param'>> """>> <<.tip """When used with the ActionSendMessageWidget, <<.param 'param'>> becomes <<.param '$param'>> """>>
<<.tip """Parameters <<.param template>>, <<.param windowTitle>>, <<.param width>>, and <<.param height>> require the ActionSendMessageWidget.""">> <<.tip """The parameters <<.param template>>, <<.param windowTitle>>, <<.param width>>, and <<.param height>> ''require'' the ActionSendMessageWidget.""">>
<$macrocall $name='wikitext-example-without-html' <$macrocall $name='wikitext-example-without-html'
@@ -29,9 +29,9 @@ src="""
$param="$:/temp/openme" $param="$:/temp/openme"
template="SampleWindowTemplate" template="SampleWindowTemplate"
windowTitle="My Window Title" windowTitle="My Window Title"
width="100em" width="640"
height="50em" height="480"
something="I just in over in a variable, and boy is my Hashmap tired." /> something="This is my new window. There are many like it, but this one is mine." />
</$button> </$button>
""" /> """ />