Function
Initializes the DOM node and connect onload event
Very lightweight lightbox which only displays a larger image. There is no support for a caption or description. The lightbox can be closed by clicking any where or pressing any key. This widget is intended to be used on <a> and <img> tags. Upon creation, if the domNode is <img> tag, then it is wrapped in an <a> tag, then a <div class="enlarge"> is placed inside the <a> and can be styled to display an icon that the original can be enlarged.
<a dojoType="dojox.image.LightboxNano" href="/path/to/largeimage.jpg"><img src="/path/to/thumbnail.jpg"></a>
<img dojoType="dojox.image.LightboxNano" src="/path/to/thumbnail.jpg" href="/path/to/largeimage.jpg">
string
URL to the large image to show in the lightbox.
int
The delay in milliseconds of the LightboxNano open and close animation.
int
The delay in milliseconds after the LightboxNano is created before preloading the larger image.
Function
Destroys the LightboxNano and it's DOM node
Function
Creates a div for the enlarge icon and loading indicator layers
DomNode
Function
Creates the large image and begins to show it
Function
Hides the animated loading indicator
Function
The image is now loaded, calculate size and display
Function
Resize the background to fill the page
Function
A key was pressed, so hide the lightbox
Function
Returns animation parameters with the start and end coords
Object
Function
Closes the lightbox
Function
Destroys the lightbox
Function
Creates the lightbox open/close and background fadein/out animations
dojo.Animation
Function
An object with optional members of `href` and `origin`. `origin` can be be a String|Id of a DomNode to use when animating the openeing of the image (the 'box' effect starts from this origin point. eg: { origin: e.target }) If there's no origin, it will use the center of the viewport. The `href` member is a string URL for the image to be displayed. Omiting either of these members will revert to the default href (which could be absent in some cases) and the original srcNodeRef for the widget.
Shows this LightboxNano programatically. Allows passing a new href and a programatic origin.
Function
Returns the dimensions and scroll position of the viewable area of a browser window
Object
Object