Tobias' appear widget

142 views
Skip to first unread message

Jon

unread,
Jan 6, 2016, 9:40:36 AM1/6/16
to TiddlyWiki
Hi,

For Tobias' Simple Pop-up http://tobibeer.github.io/tw5-plugins/#appear, is it possible to have more than one popup appearing in the same tiddler, so each reveals different content?

Thanks, Jon


Tobias Beer

unread,
Jan 6, 2016, 2:42:46 PM1/6/16
to TiddlyWiki
Hi Jon,
 
For Tobias' Simple Pop-up http://tobibeer.github.io/tw5-plugins/#appear, is it possible to have more than one popup appearing in the same tiddler, so each reveals different content?

Sure, there are multiple popups in the examples.
Be sure to use a unique $state (or fully qualified state) attribute
should two popups ever pop up at once.

Best wishes,

Tobias. 

Jon

unread,
Jan 6, 2016, 3:02:40 PM1/6/16
to TiddlyWiki
Hi Tobias,

I'm probably guilty of "man-looking", but I can't find anything in the examples which looks like the workings for a multiple pop-up. 
Which one is it exactly?

Thanks, Jon.

Tobias Beer

unread,
Jan 6, 2016, 4:14:12 PM1/6/16
to TiddlyWiki
Hi Jon,
 
I'm probably guilty of "man-looking", but I can't find anything in the examples which looks like the workings for a multiple pop-up. 
Which one is it exactly?

Do you mean a list of titles and clicking any opens the tiddler as a popup?
If so, look for the new example Tiddler Popups in the new examples.

Best wishes,

Tobias.

Jon

unread,
Jan 6, 2016, 4:41:30 PM1/6/16
to TiddlyWiki
Hi Tobias,

I meant having multiple pop-ups in the same tiddler, so popup button 1 revealed text 1 and button 2 revealed text 2.

Sorry if this is staring me in the face.

Thanks, Jon

Tobias Beer

unread,
Jan 6, 2016, 5:18:19 PM1/6/16
to TiddlyWiki
Hi Jon,

I meant having multiple pop-ups in the same tiddler, so popup button 1 revealed text 1 and button 2 revealed text 2.

There are now:
Is it that you are talking about nesting popups?

Best wishes,

Tobias.

Tobias Beer

unread,
Jan 6, 2016, 5:22:50 PM1/6/16
to TiddlyWiki
Hi Jon,
 
Is it that you are talking about nesting popups?

A little test has me believe that that's not working atm.
Will need to investigate.

Best wishes,

Tobias. 

Tobias Beer

unread,
Jan 20, 2016, 2:47:39 AM1/20/16
to TiddlyWiki
Hi Jon,

As announced here, the new version 0.6.0 of tobibeer/appear
can now handle nested appear-widget popups.

By default it also makes all popups sticky.
If you want to change that default, see:


Best wishes,

Tobias.

Jon

unread,
Jan 20, 2016, 1:21:51 PM1/20/16
to TiddlyWiki
Hi Tobias,

Sounds great...but how do I nest the popups? (I couldn't see anything in the examples I recognise as doing this - sorry if I've missed it)

So that within the same tiddler, popup 1 reveals text 1, popup 2 reveals text 2 etc.

Regards
Jon

Tobias Beer

unread,
Jan 20, 2016, 4:08:07 PM1/20/16
to tiddl...@googlegroups.com
Hi Jon,
 
So that within the same tiddler, popup 1 reveals text 1, popup 2 reveals text 2 etc.

Ah, that's actually not what I have tested. I only tested:
  • having a tiddler with an appear button
    • triggering a popup for another tiddler with an appear button
      • triggering a popup for another tiddler with an appear button
        • triggering a popup
On the other hand, this also works as expected (in a new tiddler in my wiki):

<$appear type="popup" $state="foo" show="foo">
<$appear type="popup" $state="bar" show="bar">
<$appear type="popup" $state="baz" show="baz">
mumble frotz gronk
</$appear>
</$appear>
</$appear>

I'll add some of this to the examples.

Best wishes,

Tobias.

Jon

unread,
Jan 20, 2016, 4:33:41 PM1/20/16
to tiddl...@googlegroups.com
Hi Tobias,

This was just what I was after:

<$appear type="popup" $state="foo" show="foo">
some nonsense here
</$appear>

<$appear type="popup" $state="bar" show="bar">
and here
</$appear>

<$appear type="popup" $state="baz" show="baz">
mumble frotz gronk
</$appear>


Thanks a lot!
Jon
Reply all
Reply to author
Forward
0 new messages