Development tools : XUI Mobile editor : Adding Mobile widgets : XUI Mobile widgets : Slider
  
Slider
A Slider widget is a bar with a sliding knob that can be moved to change a numeric value in a range.
Derived base
dojox.mobile.Slider
Properties
dataName
The name of a data element to which the widget is bound. If no data to be sent to the server, leave this property blank.
id
A unique ID string for the widget.
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
value
The value of the widget.
readOnly
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
max
The maximum value of the widget.
min
This property specifies the minimum value of the widget.
step
This property specifies the delta from one value to another.
dataNameForMax
The name of a data element to which the widget is bound. The maximum value of the widget is the value of the data element. You can define the maximum value of the widget in this property or in the max property.
dataNameForMin
The name of a data element to which the widget is bound. The minimum value of the widget is the value of the data element. You can define the minimum value of the widget in this property or in the min property.
ECA editor support
Event that can be added to the Slider widget with the ECA editor
onChange
This event is called when the value of the widget is changed.
Properties that can be configured for the Slider widget with the ECA editor
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
Applicable ECA part: Condition, Expression in Condition, Actions
value
The value of the widget.
Applicable ECA part: Expression in Condition, Actions
readOnly
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
Applicable ECA part: Condition, Expression in Condition, Actions
max
The maximum value of the widget.
Applicable ECA part: Expression in Condition
min
This property specifies the minimum value of the widget.
Applicable ECA part: Expression in Condition
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
Functions that can be configured for the Slider widget with the ECA editor
set(name,value)
Set a value for a widget property.
Applicable ECA part: Actions
reset()
Reset the value of the widget to the initial value.
Applicable ECA part: Actions
focus()
Set focus on the widget.
Applicable ECA part: Actions
get(name)
Returns the value of a widget property.
Applicable ECA part: Expression in Condition
compare(var1,var2)
0
var1 is same as var2.
1
var1 is after var2 in the dictionary order.
-1
var1 is before var2 in the dictionary order.
Example: compare("Hello","World") returns -1.
Applicable ECA part: Expression in Condition
See also
XUI Mobile widgets