Hi Stephan,

If jeremy accepts my pull request (which is based on this suggestion) you 
will be able to specify and access variables in the modal passed by the 
event mechanism.

See:
https://github.com/Jermolene/TiddlyWiki5/pull/1045

In my *fork* I already tested this.

Example js invocation:


    var skeletontiddler = $tw.wiki.getTiddler("template"); // e.g. has 
fields title, and subtitle
    var dialogTiddler = new $tw.Tiddler(skeletontiddler, { afield : "hey", 
another : "ho" });
    this.dispatchEvent({
      type: "tm-modal", param: dialogTiddler.fields
    }); 

in your modal you can now access

<<title>>
<<subtitle>>
<<afield>>
<<another>>

with macro call just pass different variables

regards felix

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to