A simple "nano" version of the lightbox.
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.
Parameter | Type | Description |
---|---|---|
p | Object |
Optional
|
n | DomNode |
Optional
|
See the dojox/image/LightboxNano reference documentation for more information.
<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">
The delay in milliseconds of the LightboxNano open and close animation.
The delay in milliseconds after the LightboxNano is created before preloading the larger image.
Creates the lightbox open/close and background fadein/out animations
Parameter | Type | Description |
---|---|---|
node | DomNode | |
args | Object | |
onEnd | Function |
Returns animation parameters with the start and end coords
Parameter | Type | Description |
---|---|---|
s | Object | |
e | Object |
A key was pressed, so hide the lightbox
Parameter | Type | Description |
---|---|---|
e | Event |
Creates the large image and begins to show it
Parameter | Type | Description |
---|---|---|
e | Event |
Optional
|
The image is now loaded, calculate size and display according to viewport size.
Shows this LightboxNano programatically. Allows passing a new href and a programmatic origin.
Parameter | Type | Description |
---|---|---|
args | Object |
Optional An object with optional members of |