On Sunday, October 18, 2015 at 10:25:27 AM UTC-7, FrD wrote: > > Hi, > > I'm struggling with popups. > > I have a popup, triggered by a button, that transcludes a tiddler > containing two buttons. > The behaviour I'm looking for is : > - the first button when clicked does something (it calls <$action-setfield > .../>), and does not close the popup, > - the second button also makes a change to a field and closes the popup. > > The hard piece is for the first button not to close the popup. Is it > possible ? > > Thanks > > FrD >
Popup handling recognizes two special CSS classnames: tc-popup-keep and tc-popup-handle If you assign tc-popup-keep to the <$reveal>, then clicking anywhere within the popup will not dismiss the popup. If you assign tc-popup-handle to an *individual element within the popup*, then clicking on that element will not dismiss the popup. For your purposes, something like this: <$button popup="$:/temp/testpopup">click to test</$button> <$reveal state="$:/temp/testpopup" type="popup" class="tc-drop-down"> <$button class="tc-popup-handle"> click button - stay open</$button> <$button> click button - close popup</$button> </$reveal> enjoy, -e Eric Shulman ELS Design Studios TiddlyTools - "Small Tools for Big Ideas!" InsideTiddlyWiki: The Missing Manuals YOUR DONATIONS ARE VERY IMPORTANT! HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... http://TiddlyTools.github.com/fundraising.html#MakeADonation Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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 http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/57031e14-be72-44b0-b013-e9b145e99901%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.