Hi Yakov 

The latter I would like to add an additional element to each item. 

My goal is to have each tree item set up like this:

|o|+| Treeitem1
|o|+|   -TreeSubItem1
|o|+|   -TreeSubItem2
|o|+| Treeitem2 
|o|+|   -TreeSubItem1
|o|+|     - -TreeSubSubItem1
|o|+|   -TreeSubItem2

Where
o = A link to open the tiddler. (The reason for this is so I can open 
folder nodes with out expanding/collapsing them, which I have 
already achieved this using this: var op ="<a href=\"javascript:;\" 
onclick=\"return onclickTiddlerLink(event)\" title=\"test\" 
class=\"tiddlyLink tiddlyLinkExisting\" refresh=\"link\" tiddlylink=\"" + 
tagname +"\">|O|</a>";)
+ = New subitem here, AKA Making a new tiddler with a tag that is the name 
of the item it is in front of.

On Monday, February 4, 2013 10:28:34 AM UTC-8, Yakov wrote:
>
> 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