.. _dojox/widget/AutoRotator: dojox.widget.AutoRotator ======================== :Authors: Chris Barber, Marcus Reimann :Project owner: Chris Barber :Available: since V1.4 .. contents:: :depth: 2 A rotator that automatically transitions between child nodes. ============ Introduction ============ Adds automatic rotating to the :ref:`dojox.widget.Rotator `. The AutoRotator has parameters that control how user input can affect the rotator including a suspend when hovering over the rotator and pausing when the user manually advances to another pane. ===== Usage ===== =================== ======= ====================================================================== Parameter Type Description =================== ======= ====================================================================== suspendOnHover boolean Pause the rotator when the mouse hovers over it. The default value is "false". duration int The time in milliseconds before transitioning to the next pane. The default value is 4000 (4 seconds). autoStart boolean Starts the timer to transition children upon creation. The default value is "true". pauseOnManualChange boolean Pause the rotator when the pane is changed or a controller's next or previous buttons are clicked. The default value is "false". cycles int Number of cycles before pausing. By default, it will cycle indefinitely. random boolean Determines if the panes should cycle randomly. The default value is "false". reverse boolean Causes the rotator to rotate in reverse order. The default value is "false". =================== ======= ====================================================================== The AutoRotator follows the same general Guidelines as the :ref:`dojox.widget.Rotator `. ======== Examples ======== Programmatic example -------------------- Example showing how the AutoRotator can create the pane DOM nodes for you. .. code-example:: :version: local .. css:: .. javascript:: .. html::
Declarative example ------------------- Example of an AutoRotator that cycles to 4 random panes, then pauses. .. code-example:: :version: local .. css:: .. javascript:: .. html::
Pane 0
Pane 1
Pane 2
Example of using the "wait for event" feature. The 2nd pane will wait for a event to be published by the button before proceeding. .. code-example:: :version: local .. css:: .. javascript:: .. html::

Dojo

Tons of features like CSS-based queries, event handling, animations, Ajax, class-based programming, and a package system

Dijit

Dojo's themeable, accessible, easy-to-customize UI Library

DojoX

Dojo eXtensions

======== See also ======== * :ref:`dojox.widget.Rotator ` is the base class of the AutoRotator. * :ref:`dojox.widget.rotator.Controller ` manipulates a Rotator or AutoRotator. * :ref:`dojox.widget.rotator.Fade ` is a fade and crossfade transition for the Rotator. * :ref:`dojox.widget.rotator.Pan ` is a pan and continuous pan transition for the Rotator. * :ref:`dojox.widget.rotator.Slide ` is a sliding transition for the Rotator. * :ref:`dojox.widget.rotator.Wipe ` is a wiping transition for the Rotator.