1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-05 05:30:02 +00:00

15 lines
636 B
Plaintext
Raw Normal View History

created: 20131212175656755
2015-12-23 23:28:47 +01:00
modified: 20151223222712715
2014-09-11 20:12:25 +01:00
tags: Mechanisms
title: PopupMechanism
type: text/vnd.tiddlywiki
The popup mechanism allows blocks of content to be selectively displayed and positioned with respect to an anchor. It has several parts:
2015-12-23 23:28:47 +01:00
* [[StateTiddlers|StateMechanism]] to record whether a popup is currently displayed or not
* The RevealWidget to selectively display the popup content
2015-12-23 23:28:47 +01:00
** 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