Could the Modal-backdrop become a button to close the modal?

This could make some design-tasks (and the later use of the wiki) much easier…

See documentation on the field mask-closable.

1 Like

Hi @saqimtiaz thanks for the information about this hidden treasure! I had missed this.

But how do I call it exactly?

<$button>
<$action-sendmessage $message="tm-modal" $param="SampleModal" yourName={{$:/temp/yourName}} yourMessage={{$:/temp/yourMessage}} mask-closable="yes"/>
Click me!
</$button>'/>

…did not work, testing it on tiddlywiki.com
Jan

Modals are a bit quirky in that they take their arguments from fields in the tiddler to be displayed. So you need to add a field called mask-closable to the tiddler SampleModal.

1 Like

Thanks for this clarification and the very important enhancement.
But I would never have guessed the way to implement it from the current documentation
It would be great to add an extra sentence on how this miracle is done there…
:wink: .

It really works… I will add that field asap to all my modals.

1 Like

What improvement to the documentation would you recommend? Suggestions are welcome.

It currently states:

image

Well I saw that I overread that it is already written there…
I just was looking for the widget-params which normally are found in the table. :hot_face:

Perhaps you could add a warning-sign before and mark the field in bold letters because it is so different than the usual expressions.