Hi all,
Use case:
I want to make a button in my top toolbar which toggles a plugin on/off.
Therefore it is needed to save and refresh the wiki afterwards to make the
toggling effective.
1) With the following code I can toggle the plugin on/off:
<$reveal state="$:/config/Plugins/Disabled/$:/plugins/tongerner/xyz"
type="nomatch" text="no">
<$button set="$:/config/Plugins/Disabled/$:/plugins/tongerner/toolbar"
setTo="no" tooltip="" aria-label="" class="tc-btn-invisible">{{Arrow_A}}
</$button>
</$reveal>
<$reveal state="$:/config/Plugins/Disabled/$:/plugins/tongerner/toolbar"
type="match" text="no">
<$button set="$:/config/Plugins/Disabled/$:/plugins/tongerner/xyz"
setTo="yes" tooltip="" aria-label="" class="tc-btn-invisible">{{Arrow_B}}
</$button>
</$reveal>
2) With the following code I can save and refresh the wiki:
<$button>
<$action-sendmessage $message="tm-home"/>
<$action-sendmessage $message="tm-full-screen"/>
Save & refresh!
</$button>
or - with a macro:
\define my-actions()
<$action-sendmessage $message="tm-save-wiki"/>
<$action-sendmessage $message="tm-browser-refresh"/>
\end
<$button actions=<<my-actions>>>
Save & refresh!
</$button>
My problem is how to combine both parts 1) and 2).
A construction like:
<$button><$action-sendmessage $message="tm-home"/> set="....
or
<$button actions=<<my-actions>>> set="....
does not work.
Any help appreciated.
Cheers,
Ton
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/fd834af8-6ba6-47ca-80b9-1ac4b51ba7f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.