Table of Contents
Modal Pop-up Plugin
Compatible with DokuWiki
No compatibility info given!
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Donation
If you have used this plugin and you think it saved your development time, please show some mercy to my time by donating a dollar or two.
Download and Installation
extract and drop the folder into plugins folder.
What does it do?
it is a action plugin that secretly draws a modal div into every display page.
How do I use it?
it can be used by other plugins or scripts to reveal the modal popup window. simply by calling the JavaScript function
modal.reveal()
you can then use JavaScript to write the innerHTML of a div called “modalBody”
modal.setContent('abc');
to see an example, please look at another plugin I developed, which uses the modal plugin to do easy ACL setting aclmadeeasy
What it looks like?
API
method | description |
---|---|
modal.reveal() | shows modal popup |
modal.setWidth(int width) | sets the popup box width |
modal.setHeight(int height) | sets the popup box height |
modal.hide() | close modal popup |
modal.setTitle(string title) | sets the popup box title |
modal.setContent(string HTML) | sets the popup box content, usually html string |
modal.loadContentFromDiv(string divID,bool move) | get the content from a div, move content if 2nd param is true, or copy if false) |