mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 03:27:18 +00:00
Add floating popup to Dynannotate (#7790)
This commit is contained in:
parent
e521ee2133
commit
c6604c0c56
@ -23,6 +23,7 @@ The `<$dynannotate>` widget uses the selection tracker to support a popup that d
|
||||
|filter |Filter identifying the annotation tiddlers applying to this content (see below) |
|
||||
|actions |Action string to be executed when an annotation is clicked. The variable `annotationTiddler` contains the title of the tiddler corresponding to the annotation that was clicked, and the variable `modifierKey` contains "ctrl", "shift", "ctrl-shift", "normal" according to which modifier keys were pressed |
|
||||
|popup |Popup state tiddler to be used to trigger a popup when an annotation is clicked |
|
||||
|floating |Setting to `yes` makes the popup need to be closed explicitly. |
|
||||
|search |Search text to be highlighted within the widget |
|
||||
|searchDisplay |"overlay" or "snippet" (see below) |
|
||||
|searchMode |"literal" (default), "regexp", "whitespace", "words" or "some" (see below) |
|
||||
|
@ -205,7 +205,8 @@ DynannotateWidget.prototype.applyAnnotations = function() {
|
||||
if(self.hasAttribute("popup")) {
|
||||
$tw.popup.triggerPopup({
|
||||
domNode: domOverlay,
|
||||
title: self.getAttribute("popup"),
|
||||
title: self.getAttribute("popup"),
|
||||
floating: self.getAttribute("floating"),
|
||||
wiki: self.wiki
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user