A controller that manipulates a Rotator or AutoRotator.
Displays a series of controls that send actions to a Rotator or AutoRotator. The Controller supports the following controls:
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.
Parameter | Type | Description |
---|---|---|
params | Object | |
node | DomNode | string |
See the dojox/widget/rotator/Controller reference documentation for more information.
<div dojoType="dojox.widget.rotator.Controller" rotator="myRotator" ></div>
<div dojoType="dojox.widget.rotator.Controller" rotator="myRotator" controls="prev,#,next" class="myCtrl" ></div>
<div dojoType="dojox.widget.rotator.Controller" rotator="myRotator" controls="titles" class="myCtrl" ></div>s
A comma-separated list of commands. Valid commands are: 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")
Return a string containing the current pane number and the total number of panes.
Parameter | Type | Description |
---|---|---|
r | dojox/widget/Rotator |
Toggles the play/pause button, if it exists.
Parameter | Type | Description |
---|---|---|
playing | boolean |
Updates various pager controls when the rotator updates.
Parameter | Type | Description |
---|---|---|
type | string |
<div dojoType="dojox.widget.rotator.Controller" rotator="myRotator" ></div>
<div dojoType="dojox.widget.rotator.Controller" rotator="myRotator" controls="prev,#,next" class="myCtrl" ></div>
<div dojoType="dojox.widget.rotator.Controller" rotator="myRotator" controls="titles" class="myCtrl" ></div>s