.. _dojox/widget/rotator/Controller: dojox.widget.rotator.Controller =============================== :Authors: Chris Barber :Project owner: Chris Barber :Available: since V1.4 .. contents:: :depth: 2 A controller that manipulates a :ref:`dojox.widget.Rotator ` or :ref:`dojox.widget.AutoRotator `. ============ Introduction ============ Displays a series of controls that send actions to a Rotator or AutoRotator. The Controller supports the following controls: * Next pane * Previous pane * Play/Pause toggler * Numbered tabs * Titled tabs * Information You may specify any of these controls in any order. You may also have multiple Controllers tied to a single Rotator instance. The Controller's DOM node may also be styled for positioning or other styled preferences. ===== Usage ===== ========== ======= ====================================================================== Parameter Type Description ========== ======= ====================================================================== rotator string The name of an instance of a Rotator widget defined by jsId. commands string A comma-separated list of commands. The default value is "prev,play/pause,info,next". ========== ======= ====================================================================== The "commands" parameter accepts the following commands: ============= ============================================================================ Command Name Description ============= ============================================================================ prev An icon button to go to the previous pane. next An icon button to go to the next pane. play/pause A play and pause toggle icon button. info Displays the current and total panes. (ie "1 / 4") titles Displays each pane's title as a tab. (ie "Home Services Contact Blog") ============= ============================================================================ ======== 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 ------------------- .. code-example:: :version: local .. css:: .. javascript:: .. html::
Pane 0
Pane 1
Pane 2

Default Controller

Prev, Numbers, Next

======== See also ======== * :ref:`dojox.widget.Rotator ` rotates through a series of panes using a transitions. * :ref:`dojox.widget.AutoRotator ` adds automatic rotating to a Rotator.