Hi Arc,

do you mean that you'd like to substitute the current action (open the 
tiddler) by creating a new tiddler -- on click of the tiddler name in the 
tree? Or would you like to create an additional element -- a button "add" 
for each node of the tree?

понедельник, 4 февраля 2013 г., 14:53:20 UTC+4 пользователь Arc Acorn 
написал:
>
> I am very new to JS and only know the bare basics so I apologies if this 
> is phased poorly.
>
> I am trying to add a onclick link event at the end of each item in the 
> treeplugin by MarkS: http://treeview.tiddlyspot.com/
> That would allow a new subnode to be made. AKA: reproduce the macro 
> <<newTiddler title:NewNode Tag:+Tagname+>>
> As an onclick event on a link. 
>
> Something along the lines of: 
> var ah ="<a href=\"javascript:;\" onclick=\"return 
> newTiddler.onClick=function(e)\" title=\"Create a new sub node here\" 
> newtitle=\"NewNode\" isjournal=\"false\" newfocus=\"title\" 
> tag=\"'+tagname+"\">+</a>";
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to