A dojo-based Lightbox implementation.
An Elegant, keyboard accessible, markup and store capable Lightbox widget to show images in a modal dialog-esque format. Can show individual images as Modal dialog, or can group images with multiple entry points, all using a single "master" Dialog for visualization
key controls:
See the dojox/image/Lightbox reference documentation for more information.
<a href="image1.jpg" dojoType="dojox.image.Lightbox">show lightbox</a>
<a href="image2.jpg" dojoType="dojox.image.Lightbox" group="one">show group lightbox</a> <a href="image3.jpg" dojoType="dojox.image.Lightbox" group="one">show group lightbox</a>
not implemented fully yet, though works with basic datastore access. need to manually call widget._attachedDialog.addImage(item,"fromStore") for each item in a store result set. <div dojoType="dojox.image.Lightbox" group="fromStore" store="storeName"></div>
Privately set this to disable/enable natural link of anchor tags
The pointer to the global lightbox dialog for this widget
Generic time in MS to adjust the feel of widget. could possibly add various durations for the various actions (dialog fadein, sizeing, img fadein ...)
Grouping images in a page with similar tags will provide a 'slideshow' like grouping of images
If true, this Dialog instance will be truly modal and prevent closing until explicitly told to by calling hide() or clicking the (x) - Defaults to false to preserve previous behaviors. (aka: enable click-to-close on the underlay)
A string of text to be shown in the Lightbox beneath the image (empty if using a store)
Disables event clobbering and dialog, and follows natural link
Stub fired when the image in the lightbox is clicked.
<a href="image1.jpg" dojoType="dojox.image.Lightbox">show lightbox</a>
<a href="image2.jpg" dojoType="dojox.image.Lightbox" group="one">show group lightbox</a> <a href="image3.jpg" dojoType="dojox.image.Lightbox" group="one">show group lightbox</a>
not implemented fully yet, though works with basic datastore access. need to manually call widget._attachedDialog.addImage(item,"fromStore") for each item in a store result set. <div dojoType="dojox.image.Lightbox" group="fromStore" store="storeName"></div>