created: 20140811112133701 modified: 20141107142803042 tags: Messages title: WidgetMessage: tm-modal type: text/vnd.tiddlywiki caption: tm-modal |!Name |!Description | |param |Title of the tiddler to be displayed | |paramObject |Hashmap of variables to be provided to the modal | |rootwindow |<<.from-version 5.1.18>> ''yes'' or ''true'' will always display a modal in the wiki-root-window | The "currentTiddler" variable is set to the title of the modal tiddler, but can be overridden by specifying a different value in `paramObject`. The modal message is usually generated with the ButtonWidget. The modal message is handled by the TiddlyWiki core. ! Example Here is an example of displaying a modal and passing parameters to it: <$macrocall $name='wikitext-example-without-html' src='Your name: <$edit-text tiddler="$:/temp/yourName" tag="input" default="Your name"/> Your message: <$edit-text tiddler="$:/temp/yourMessage" default="Your message"/> <$button> <$action-sendmessage $message="tm-modal" $param="SampleModal" yourName={{$:/temp/yourName}} yourMessage={{$:/temp/yourMessage}}/> Click me! '/> <<.tip """<$macrocall $name=".from-version" version="5.1.18"/> if triggered from within a ''new window'', the above examples will be displayed within that window. The <$macrocall $name=".attr" _="rootwindow"/> attribute can be set to ''yes'' or ''true'' to inherit this behavior and to display the Modal within the ''root'' window""">>