I'm working to improve the SideEditor. The new idea is a "separate window" 
feature, i.e to split out the editor into a separate window which you can 
then place in front of any other applications you're working on with your 
computer.

Question: 

The doc for tm-open-window 
<https://tiddlywiki.com/prerelease/#WidgetMessage%3A%20tm-open-window> 
reads:

paramObject Hashmap of variables that will be provided to the window
but there is no example for how to use this.

Digging in the core, I find $:/core/modules/startup/windows.js 
<https://tiddlywiki.com/prerelease/#%24%3A%2Fcore%2Fmodules%2Fstartup%2Fwindows.js>
 
which has

 paramObject = event.paramObject || {},
 windowTitle = paramObject.windowTitle || title,
 template = paramObject.template || 
"$:/core/templates/single.tiddler.window",
 width = paramObject.width || "700",
 height = paramObject.height || "600",
 variables = $tw.utils.extend({},paramObject,{currentTiddler: title});

(I'm assuming this is a definition of it, as opposed to merely some 
invocation)

But how do I formulate the paramObject argument to achieve:

   1. I wish to send along a variable value to be used inside the opened 
   window.
   2. width and height are, according to the docs, separate parameters in 
   the tw-open-window call BUT I'm not happy with how they can only be set in 
   pixels because the context I'm using it in does things in vh, vw. 
   3. I wish to control the position of the window.

Thank you!

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/14e4f03c-b316-4d26-97be-8d0f9297c3f7o%40googlegroups.com.

Reply via email to