This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

PopupMechanism

23rd December 2015 at 10:27pm
Mechanisms

The popup mechanism allows blocks of content to be selectively displayed and positioned with respect to an anchor. It has several parts:

  • StateTiddlers to record whether a popup is currently displayed or not
  • The RevealWidget to selectively display the popup content
    • For "sticky" popups — those that don't close when clicking inside one — set the class attribute to tc-popup-keep
  • The ButtonWidget to trigger the display of the popup by setting the state tiddler appropriately