Development tools : XUI Mobile editor : Adding Mobile widgets : XUI Mobile widgets : SpinWheelSlot
  
SpinWheelSlot
The SpinWheelSlot widget is used in combination with a SpinWheel widget to display a scrollable list of options.
Derived base
dojox.mobile.SpinWheelSlot
Properties
listValue
The name of the iColl that is defined to load data for the list items.
labelField
The field name in iColl for the item label on the left side.
rightTextField
The field name in iColl for the item label on the right side.
valueField
The field name in iColl for submitting a value.
id
A unique ID string for the widget.
labelFrom
If the slot labels are designed to be integers, this property specifies the staring value to be displayed on the slot.
labels
If the slot labels are designed not to be integers, this property specifies an array of labels to be displayed on the slot.
labelTo
If the slot labels are designed to be integers, this property specifies the ending value to be displayed on the slot.
step
This property specifies the delta from one value to another.
value
This property specifies the default value of the widget.
zeroPad
If the slot labels are integers, this property specifies the length of the integer labels. Leading zeros are used to match the length of the label with the definition in the zeroPad property.
ECA editor support
You can configure the following events, properties, and functions for the SpinWheelSlot widget with the ECA editor.
Events that can be added to the SpinWheelSlot widget with the ECA editor
onAfterScroll
This event is called when the widget is scrolled.
onBeforeScroll
This event is called before the widget is scrolled.
onFlickAnimationEnd
This event is called when the flick animation stops.
onFlickAnimationStart
This event is called when the flick animation starts.
onTouchEnd
This event is called when you move your touch point outside of the widget.
onTouchMove
This event is called when you move your touch point on the widget.
onTouchStart
This event is called when you touch the widget.
Properties that can be configured for the SpinWheelSlot widget with the ECA editor
value
The value of the widget.
Applicable ECA part: Expression in Condition, Actions
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
Function that can be configured for the SpinWheelSlot widget with the ECA editor
set(name,value)
Set a value for a widget property.
Applicable ECA part: Actions
get(name)
Returns the value of a widget property.
Applicable ECA part: Expression in Condition
See also
XUI Mobile widgets