이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

WidgetMessage: tm-close-window

2023년 7월 23일 오후 10:05
Introduced in v5.2.2

The tm-close-window message closes an additional browser window that was opened with tm-open-window. Specify which window to close by setting the value of param to the string used as windowID when opening the window.

NameDescription
param {default param}String used as windowID when opening the window

The tm-close-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 ActionSendMessageWidget, param becomes $param

Tip
To close all additional browser windows that were opened with tm-open-window use WidgetMessage: tm-close-all-windows

Tip
If the windowID parameter was used with tm-open-window when opening a new window, the value of windowID is available within that window in the variable tv-window-id


<$button>Open Window
<$action-sendmessage 
  $message="tm-open-window" 
  $param="$:/temp/openme" 
  template="SampleWindowTemplate" 
  windowTitle="My Window Title"
  width="400"
  height="500"
  windowID="window1"
  something="I just flew in on a variable, and boy is my Hashmap tired." />
</$button>
<$button>Close Window
<$action-sendmessage 
  $message="tm-close-window" 
  $param="window1" 
/>
</$button>

That renders as: