.. _dojox/image/LightboxNano:
dojox.image.LightboxNano
========================
:Status: Draft
:Version: 1.0
:Project owner: Chris Barber
:Available: since V1.3
.. contents::
:depth: 2
A simple "nano" version of the lightbox.
============
Introduction
============
The LightboxNano is a 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. It is not a dijit._Widget, but behaves similar to a dijit._Widget.
After the LightboxNano loads, it waits preloadDelay (default of 5000ms) before caching the larger image. When the user clicks the thumbnail image to launch the LightboxNano, hopefully the larger image will be downloaded and the animation will play smoothly. If the user clicks the thumbnail image before the larger version could be preloaded, a loading indicator is displayed prior to the animation beginning. Subsequent clicking of the larger image is instant since the larger image is already cached.
For being so small, it packs a handful of features:
* Automatically resizes large images to fit in browser window.
* Preloads the larger image to make loading faster.
* Keyboard accessible.
* Instantly makes your website awesome.
=====
Usage
=====
============ ====== ======================================================================
Parameter Type Description
============ ====== ======================================================================
href String URL to the large image to show in the lightbox.
duration int The delay in milliseconds of the LighboxNano open and close animation.
preloadDelay int The delay in milliseconds after the LightboxNano is created before preloading the larger image.
============ ====== ======================================================================
The LightboxNano is intended to be used on and tags. Upon creation, if the domNode is tag, then it is wrapped in an tag. It will also add two