How I can access this tree?
$tw.wiki?
A.
otrdiena, 2017. gada 5. septembris 19:14:56 UTC+3, BJ rakstīja:
>
> The concept in tw5 is of a tree build of js widgets (js macros are connect
> to the tree through the macrocall widget), you can send messages up the
> tree, eg
>
> this.dispatchEvent({type: "tm-close-tiddler", tiddlerTitle: "mytid"})
>
> sends a message to the navigator widget to close a tid.
>
> all the best
>
> BJ
>
> On Tuesday, September 5, 2017 at 9:10:33 AM UTC+2, Aigars Rogozovs wrote:
>>
>> Thanks for answer
>>
>> Not Macros, but with JavaScript :)
>>
>> This Macros I already used, but without result
>>
>> For example:
>>
>> function search_by_tag(tag_name) {
>> $('.tc-tiddler-frame').each(function(tiddler_frame) {
>> var self = this;
>> var tags_label = $(self).find('.tc-tag-label');
>> var tags = [];
>> $(this).each(function(tag) {
>> var tag_name = $(tag).text().trim();
>> tags.push(tag_name);
>> });
>> console.log(tags);
>> });
>> }
>>
>> I find all tags
>>
>> What result I want:
>>
>> When user open tiddler, other tiddlers with same tags close automatically
>>
>> I don't known how to make that with Macros, so I make it with jQuery
>>
>> 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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/d42ed1d5-8dd0-4e44-b8f2-af0744cc9302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.