A rotator that automatically transitions between child nodes.
Adds automatic rotating to the 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.
See the dojox/widget/AutoRotator reference documentation for more information.
<div dojoType="dojox.widget.AutoRotator" duration="3000"> <div> Pane 1! </div> <div duration="5000"> Pane 2 with an overrided duration! </div> </div>
Starts the timer to transition children upon creation.
The time in milliseconds before transitioning to the next pane. The default value is 4000 (4 seconds).
Array of panes to be created in the Rotator. Each array element will be passed as attributes to a html.create() call.
Pause the rotator when the pane is changed or a controller's next or previous buttons are clicked.
Pause the rotator when the mouse hovers over it.
The name of a function that is passed two panes nodes and a duration, then returns a dojo.Animation object. The default value is "dojox.widget.rotator.swap".
Parameters for the transition. The string is read in and eval'd as an object. If the duration is absent, the default value will be used.
Cycles the rotator to the next/previous pane.
Parameter | Type | Description |
---|---|---|
manual | Boolean | int |
Optional
|
Helper function to return the current system time in milliseconds.
Resets the timer used to schedule the next transition.
Dispatches an action, first to this engine, then to the Rotator.
Parameter | Type | Description |
---|---|---|
action | string |
Transitions the Rotator to the specified pane index.
Parameter | Type | Description |
---|---|---|
p | int | string |
Optional
|
Sets the state to "not playing" and clears the cycle timer.
Sets the state to "playing" and schedules the next cycle to run.
Parameter | Type | Description |
---|---|---|
skipCycleDecrement | Boolean |
Optional
|
skipDuration | Boolean |
Optional
|
Parameter | Type | Description |
---|---|---|
width | int | |
height | int |
Override the Rotator's onManualChange so we can pause.
Parameter | Type | Description |
---|---|---|
action | string |
<div dojoType="dojox.widget.AutoRotator" duration="3000"> <div> Pane 1! </div> <div duration="5000"> Pane 2 with an overrided duration! </div> </div>
Send a notification to all controllers with the state of the rotator.
Parameter | Type | Description |
---|---|---|
type | string | |
params | object |
Optional
|
<div dojoType="dojox.widget.AutoRotator" duration="3000"> <div> Pane 1! </div> <div duration="5000"> Pane 2 with an overrided duration! </div> </div>