Hallo Simon,
Heureka, it works!

Now I got an further task:
Because a lot of actions shall be triggerd by the swipe I tried to replace the actions with a macro <<showSideBar>> (defined in $:/core/ui/TopBar/menu).
Could you get macros to work in the widget?

Yours Jan


Am 04.02.2018 um 07:51 schrieb BurningTreeC:
@Jan,

I took a look how you implemented it:

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" retain="yes" animate="yes"> <$swipe $targets="tc-tid-frame" $velocity="1.0" $direction="left" $actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="yes"/>""" $state="on">
{{$:/plugins/JR/MultiMenu}}
</$swipe>
</$reveal>

you don't have no element with the class "tc-tid-frame" in the MultiMenu. But there's the big leftmenuwrapper that can be used.
I changed it to

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" retain="yes" animate="yes"> <$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="left" $actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="yes"/>""" $state="on">
{{$:/plugins/JR/MultiMenu}}
</$swipe>
</$reveal>

and it worked. you can also

<$reveal state="$:/state/MultiMenu" type="match" text="" default="" retain="yes" animate="yes"> <$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="right" $actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="no"/>""" $state="on"> <$swipe $targets="leftmenuwrapper" $velocity="1.0" $direction="left" $actions="""<$action-setfield $tiddler="$:/state/sidebar" $value="yes"/>""" $state="on">
{{$:/plugins/JR/MultiMenu}}
</$swipe>
</$swipe>
</$reveal>

works very well

happy hacking!
--
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 tiddlywiki+unsubscr...@googlegroups.com <mailto:tiddlywiki+unsubscr...@googlegroups.com>. To post to this group, send email to tiddlywiki@googlegroups.com <mailto:tiddlywiki@googlegroups.com>.
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/1f87c970-9307-4084-9101-cc504b2a0aee%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/1f87c970-9307-4084-9101-cc504b2a0aee%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/5A76D14C.9040106%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to