Login Register

Widgets

Lightbox

TODO: Fill in info on dojox.image.Lightbox / finish / elaborate more

dojox.image.Lightbox

A clone of Lightbox2 for dojo. A Lightbox displays images in a modal dialog. It can display single images, or image groups, with smooth transition animations in between. You can populate the Lightbox group from a dojo.data datastore, or from markup.

Gallery

dojox.image.Gallery is a widget that displays a series of thumbnail sized images, for quick browsing and selection, and a single large image. It provides a number of navigation controls for moving between images, and for playing an automated slideshow.

Slideshow

slideshow.jpg

The dojox.image.SlideShow widget displays a series of images, one at a time. It provides controls to move from image to the next or the previous image. It can also run an automated slideshow, moving from one image to the next every specified number of seconds.

ThumbnailPicker

thumbpicker.gif

The ThumbnailPicker is a widget that displays a series of images either horizontally or vertically, with controls to page through the images. It reads its image data from data stores, that is, implementations of the dojo.data.api.Read API.

When an image is clicked by the user, information regarding that image is published to a dojo topic, which can be used to integrate the ThumbnailPicker with other objects on the page.

Why do I often see 404s like dijit/nls/en-us/loading.js?

version:
all

The short answer:
It's harmless. This is the correct behavior when loading translated resources. To avoid the multiple hits and 404s, you need to do a build.

The long answer:

Where is Widget.show()/hide() and the wipe/explode/fade toggle animation?

version:
0.9

These methods were removed after the 0.4 release because:

1) popups are opened/closed by calling dijit.popup.open()/close()

2) StackContainer widgets (TabContainer, AccordionContainer) use a transition() method to switch between two widgets (for example, you might do chained animation, fading out one widget before wiping in the second)

3) You can make an arbitrary animation to show/hide a widget using the dojo.fx code (slideIn, fadeIn, or something more complicated using animateProperty and/or combined animations on myWidget.domNode

Why/When do I have to call someWidget.startup() when creating a widget programatically?

version:
1.0
It's because startup() needs to be called after all the other widgets have been created, particularly the child widgets. When loading widgets from Markup, the parser knows when the last child widget of any widget is loaded.

General information

The goal of Dijit is to provide a set of basic widgets which support theming, accessibility, and globalization. The widgets and widget infrastructure have been moved into a separate subproject called "Dijit" and vastly streamlined and with a new directory structure.

Widget subsystem changes

This chapter lists general information on changes to the widget subsystem, as well as a migration path for each widget in Dojo 0.4, where available.

The 0.9 release has a number of improvements over 0.4:

Interacting With Widgets

Overview

This section discusses how to programmatically retrieve a reference to a widget, and how to use that reference to interact with the widget.

Syndicate content