Class Index

Classes


Class com.zmags.api.Lightbox

If you are experiencing a problem and need to troubleshoot, please send an e-mail to support@zmags.com.

Class Summary
Constructor Attributes Constructor Name and Description
 
Enables communication between a lightbox and the viewer.
Function Summary
Function Attributes Function Name and Description
<static>  
com.zmags.api.Lightbox.close()

Closes the current lightbox.

Class Detail
com.zmags.api.Lightbox(window)
Enables communication between a lightbox and the viewer.

To use the API, include this javascript file in the page loaded in the lightbox and call one of the static methods to communicate with the viewer. There is no need to construct an instance of Lightbox directly. See the documentation of the static methods for examples of how to use the API.


Author: Zmags.
Parameters:
{Window} window
The current window.
Function Detail
<static> com.zmags.api.Lightbox.close()

Closes the current lightbox.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Lightbox API Test</title>
    <script src="http://api.viewer.zmags.com/lightbox/lightbox.js" type="text/javascript"></script>
</head>
<body>
    <button type="button" onClick="com.zmags.api.Lightbox.close();">Close</button>
</body>
</html>

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jun 19 2017 01:43:31 GMT-0000 (UTC)