Aigars,
Not exactly answering your question but this discussion
<https://groups.google.com/forum/?hl=en#!searchin/tiddlywiki/closeByFilter%7Csort:relevance/tiddlywiki/Eqcsb-B6iLk/L_wNZ0RjAQAJ>
resulted in the sharing of the following "macros" that may be of use;
In this case the Button is used to trigger the action widget
action-sendmessage. So a Question someone could answer is how to trigger
action widgets from Javascript?.
Best of Luck
Tony
\define closeByFilter(filter)
filter: $filter$
<$button>
close filtered tiddlers
<$list filter=$filter$>
<$action-sendmessage $message="tm-close-tiddler"/>
</$list>
</$button>
\end
\define openByFilter(filter)
filter: $filter$
<$button>
open filtered tiddlers
<$list filter=$filter$>
<$action-navigate $to={{!!title}}/>
<$action-sendmessage $message="tm-unfold-all-tiddlers"/>
</$list>
</$button>
\end
On Monday, September 4, 2017 at 8:34:38 PM UTC+10, Aigars Rogozovs wrote:
>
> Hello
>
> How I can close TW5 tiddler via JavaScript if I known it name?
>
> I`m writing 3rd party plugin
>
> Thanks
>
> 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/ae196c59-44db-46e7-a122-50e427369a5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.