1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>API: slider YAHOO.widget.Slider (YUI Library)
</title>
5 <link rel=
"stylesheet" type=
"text/css" href=
"assets/api.css">
9 <div id=
"doc3" class=
"yui-t2">
12 <h1>Yahoo! UI Library
</h1>
13 <h3>Slider Widget
<span class=
"subtitle">2.2.0</span></h3>
15 <a href=
"./index.html">Yahoo! UI Library
</a>
16 > <a href=
"./module_slider.html">slider
</a>
17 > YAHOO.widget.Slider
32 Class
<b>YAHOO.widget.Slider
</b>
33 <span class=
"extends">
34 - extends
<a href=
"YAHOO.util.DragDrop.html">YAHOO.util.DragDrop
</a>
37 <span class=
"extends">
40 <a href=
"YAHOO.util.EventProvider.html">YAHOO.util.EventProvider
</a>
46 <!-- class tree goes here -->
51 <div class=
"summary description">
52 A DragDrop implementation that can be used as a background for a
53 slider. It takes a reference to the thumb instance
54 so it can delegate some of the events to it. The goal is to make the
55 thumb jump to the location on the background when the background is
59 <div class=
"section constructor details">
60 <h3><a name=
"constructor_detail">Constructor
</a></h3>
63 <strong>YAHOO.widget.Slider
</strong>
81 <div class=
"description">
88 The id of the element linked to this instance
94 The group of related DragDrop items
100 The thumb for this slider
106 The type of slider (horiz, vert, region)
116 <div class=
"section field details">
117 <h3><a name=
"field_detail">Properties
</a></h3>
118 <div class=
"content">
119 <h4><a name=
"animate">animate
</a>
120 <code>- boolean
</code>
123 <div class=
"description">
124 Flag that determines if the thumb will animate when moved
132 <h4><a name=
"animationDuration">animationDuration
</a>
136 <div class=
"description">
137 If animation is configured, specifies the length of the animation
143 <div class=
"default">
149 <h4><a name=
"backgroundEnabled">backgroundEnabled
</a>
150 <code>- boolean
</code>
153 <div class=
"description">
154 Set to false to disable a background click thumb move
162 <h4><a name=
"baselinePos">baselinePos
</a>
163 <code>- [int, int]
</code>
166 <div class=
"description">
167 The basline position of the background element, used
168 to determine if the background has moved since the last
177 <h4><a name=
"enableKeys">enableKeys
</a>
178 <code>- boolean
</code>
181 <div class=
"description">
182 Enables the arrow, home and end keys, defaults to true.
190 <h4><a name=
"isTarget">isTarget
</a>
191 <code>- private object
</code>
194 <div class=
"description">
195 Overrides the isTarget property in YAHOO.util.DragDrop
203 <h4><a name=
"keyIncrement">keyIncrement
</a>
207 <div class=
"description">
208 Specifies the number of pixels the arrow keys will move the slider.
217 <h4><a name=
"moveComplete">moveComplete
</a>
218 <code>- Boolean
</code>
221 <div class=
"description">
222 moveComplete is set to true when the slider has moved to its final
223 destination. For animated slider, this value can be checked in
224 the onChange handler to make it possible to execute logic only
225 when the move is complete rather than at all points along the way.
226 Deprecated because this flag is only useful when the background is
227 clicked and the slider is animated. If the user drags the thumb,
228 the flag is updated when the drag is over ... the final onDrag event
229 fires before the mouseup the ends the drag, so the implementer will
236 <div class=
"deprecated">
237 <strong>Deprecated:
</strong>use the slideEnd event instead
241 <h4><a name=
"thumb">thumb
</a>
242 <code>- YAHOO.widget.SliderThumb
</code>
245 <div class=
"description">
246 A YAHOO.widget.SliderThumb instance that we will use to
247 reposition the thumb when the background is clicked
255 <h4><a name=
"thumbCenterPoint">thumbCenterPoint
</a>
256 <code>- {
"x": int,
"y": int}
</code>
259 <div class=
"description">
260 The center of the slider element is stored so we can
261 place it in the correct position when the background is clicked.
269 <h4><a name=
"tickPause">tickPause
</a>
273 <div class=
"description">
274 Adjustment factor for tick animation, the more ticks, the
275 faster the animation (by default)
283 <h4><a name=
"type">type
</a>
284 <code>- string
</code>
287 <div class=
"description">
288 The type of the slider (horiz, vert, region)
296 <h4><a name=
"YAHOO.widget.Slider.ANIM_AVAIL">YAHOO.widget.Slider.ANIM_AVAIL
</a>
297 <code>- static boolean
</code>
300 <div class=
"description">
301 By default, animation is available if the animation library is detected.
314 <div class=
"section field inheritance">
315 <h4>Properties inherited from
<a href=
"YAHOO.util.DragDrop.html">YAHOO.util.DragDrop
</a>:
</h4>
316 <div class=
"content">
319 <a href=
"YAHOO.util.DragDrop.html#__ygDragDrop">__ygDragDrop
</a>,
320 <a href=
"YAHOO.util.DragDrop.html#_domRef">_domRef
</a>,
321 <a href=
"YAHOO.util.DragDrop.html#available">available
</a>,
322 <a href=
"YAHOO.util.DragDrop.html#config">config
</a>,
323 <a href=
"YAHOO.util.DragDrop.html#constrainX">constrainX
</a>,
324 <a href=
"YAHOO.util.DragDrop.html#constrainY">constrainY
</a>,
325 <a href=
"YAHOO.util.DragDrop.html#dragElId">dragElId
</a>,
326 <a href=
"YAHOO.util.DragDrop.html#groups">groups
</a>,
327 <a href=
"YAHOO.util.DragDrop.html#handleElId">handleElId
</a>,
328 <a href=
"YAHOO.util.DragDrop.html#hasOuterHandles">hasOuterHandles
</a>,
329 <a href=
"YAHOO.util.DragDrop.html#id">id
</a>,
330 <a href=
"YAHOO.util.DragDrop.html#invalidHandleClasses">invalidHandleClasses
</a>,
331 <a href=
"YAHOO.util.DragDrop.html#invalidHandleIds">invalidHandleIds
</a>,
332 <a href=
"YAHOO.util.DragDrop.html#invalidHandleTypes">invalidHandleTypes
</a>,
333 <a href=
"YAHOO.util.DragDrop.html#locked">locked
</a>,
334 <a href=
"YAHOO.util.DragDrop.html#maintainOffset">maintainOffset
</a>,
335 <a href=
"YAHOO.util.DragDrop.html#maxX">maxX
</a>,
336 <a href=
"YAHOO.util.DragDrop.html#maxY">maxY
</a>,
337 <a href=
"YAHOO.util.DragDrop.html#minX">minX
</a>,
338 <a href=
"YAHOO.util.DragDrop.html#minY">minY
</a>,
339 <a href=
"YAHOO.util.DragDrop.html#primaryButtonOnly">primaryButtonOnly
</a>,
340 <a href=
"YAHOO.util.DragDrop.html#startPageX">startPageX
</a>,
341 <a href=
"YAHOO.util.DragDrop.html#startPageY">startPageY
</a>,
342 <a href=
"YAHOO.util.DragDrop.html#xTicks">xTicks
</a>,
343 <a href=
"YAHOO.util.DragDrop.html#yTicks">yTicks
</a>
347 <div class=
"section field inheritance">
348 <h4>Properties inherited from
<a href=
"YAHOO.util.EventProvider.html">YAHOO.util.EventProvider
</a>:
</h4>
349 <div class=
"content">
352 <a href=
"YAHOO.util.EventProvider.html#__yui_events">__yui_events
</a>,
353 <a href=
"YAHOO.util.EventProvider.html#__yui_subscribers">__yui_subscribers
</a>
358 <div class=
"section method details">
359 <h3><a name=
"methodDetails">Methods
</a></h3>
360 <div class=
"content">
362 <a name=
"_getNextX">_getNextX
</a></h4>
369 <strong>_getNextX
</strong>
374 <div class=
"description">
375 Returns the next X tick value based on the current coord and the target coord.
378 <div class=
"description">
394 <a name=
"_getNextY">_getNextY
</a></h4>
401 <strong>_getNextY
</strong>
406 <div class=
"description">
407 Returns the next Y tick value based on the current coord and the target coord.
410 <div class=
"description">
426 <a name=
"b4MouseDown">b4MouseDown
</a></h4>
433 <strong>b4MouseDown
</strong>
438 <div class=
"description">
439 Resets the constraints before moving the thumb.
442 <div class=
"description">
458 <a name=
"endMove">endMove
</a></h4>
465 <strong>endMove
</strong>
470 <div class=
"description">
471 Fired when the slider movement ends
474 <div class=
"description">
490 <a name=
"fireEvents">fireEvents
</a></h4>
497 <strong>fireEvents
</strong>
507 <div class=
"description">
508 Fires the change event if the value has been changed. Ignored if we are in
509 the middle of an animation as the event will fire when the animation is
513 <div class=
"description">
518 <code>thumbEvent
<boolean
></code>
519 set to true if this event is fired from an event
520 that occurred on the thumb. If it is, the state of the
521 thumb dd object should be correct. Otherwise, the event
522 originated on the background, so the thumb state needs to
523 be refreshed before proceeding.
540 <a name=
"focus">focus
</a></h4>
547 <strong>focus
</strong>
552 <div class=
"description">
553 Try to focus the element when clicked so we can add
554 accessibility features
557 <div class=
"description">
573 <a name=
"getThumb">getThumb
</a></h4>
580 <strong>getThumb
</strong>
585 <div class=
"description">
586 Returns a reference to this slider's thumb
589 <div class=
"description">
597 <dd>this slider's thumb
</dd>
605 <a name=
"getValue">getValue
</a></h4>
612 <strong>getValue
</strong>
617 <div class=
"description">
618 Returns the slider's thumb offset from the start position
621 <div class=
"description">
629 <dd>the current value
</dd>
637 <a name=
"getXValue">getXValue
</a></h4>
644 <strong>getXValue
</strong>
649 <div class=
"description">
650 Returns the slider's thumb X offset from the start position
653 <div class=
"description">
661 <dd>the current horizontal offset
</dd>
669 <a name=
"getYValue">getYValue
</a></h4>
676 <strong>getYValue
</strong>
681 <div class=
"description">
682 Returns the slider's thumb Y offset from the start position
685 <div class=
"description">
693 <dd>the current vertical offset
</dd>
701 <a name=
"handleKeyDown">handleKeyDown
</a></h4>
708 <strong>handleKeyDown
</strong>
718 <div class=
"description">
719 Executed when a keydown event happens with the control focused.
720 Updates the slider value and display when the keypress is an
721 arrow key, home, or end as long as enableKeys is set to true.
724 <div class=
"description">
729 <code>e
<Event
></code>
747 <a name=
"handleKeyPress">handleKeyPress
</a></h4>
754 <strong>handleKeyPress
</strong>
764 <div class=
"description">
765 Executed when a keypress event happens with the control focused.
766 Prevents the default behavior for navigation keys. The actual
767 logic for moving the slider thumb in response to a key event
768 happens in handleKeyDown.
771 <div class=
"description">
776 <code>e
<Event
></code>
794 <a name=
"handleThumbChange">handleThumbChange
</a></h4>
801 <strong>handleThumbChange
</strong>
806 <div class=
"description">
807 Internal handler for the slider thumb's onChange event
810 <div class=
"description">
826 <a name=
"initSlider">initSlider
</a></h4>
833 <strong>initSlider
</strong>
843 <div class=
"description">
844 Initializes the slider. Executed in the constructor
847 <div class=
"description">
852 <code>sType
<string
></code>
853 the type of slider (horiz, vert, region)
870 <a name=
"initThumb">initThumb
</a></h4>
877 <strong>initThumb
</strong>
887 <div class=
"description">
888 Initializes the slider's thumb. Executed in the constructor.
891 <div class=
"description">
896 <code>t
<YAHOO.widget.SliderThumb
></code>
914 <a name=
"lock">lock
</a></h4>
921 <strong>lock
</strong>
926 <div class=
"description">
927 Locks the slider, overrides YAHOO.util.DragDrop
930 <div class=
"description">
946 <a name=
"moveOneTick">moveOneTick
</a></h4>
953 <strong>moveOneTick
</strong>
963 <div class=
"description">
964 Move the slider one tick mark towards its final coordinate. Used
965 for the animation when tick marks are defined
968 <div class=
"description">
973 <code>the
<int[]
></code>
974 destination coordinate
991 <a name=
"moveThumb">moveThumb
</a></h4>
998 <strong>moveThumb
</strong>
1016 <div class=
"description">
1017 Move the associated slider moved to a timeout to try to get around the
1018 mousedown stealing moz does when I move the slider element between the
1019 cursor and the background during the mouseup event
1022 <div class=
"description">
1025 <dt>Parameters:
</dt>
1027 <code>x
<int
></code>
1028 the X coordinate of the click
1031 <code>y
<int
></code>
1032 the Y coordinate of the click
1035 <code>skipAnim
<boolean
></code>
1036 don't animate if the move happend onDrag
1053 <a name=
"onAvailable">onAvailable
</a></h4>
1054 <div class=
"detail">
1060 <strong>onAvailable
</strong>
1065 <div class=
"description">
1066 Executed when the slider element is available
1069 <div class=
"description">
1085 <a name=
"onChange">onChange
</a></h4>
1086 <div class=
"detail">
1092 <strong>onChange
</strong>
1106 <div class=
"description">
1107 Event that fires when the value of the slider has changed
1110 <div class=
"description">
1113 <dt>Parameters:
</dt>
1115 <code>firstOffset
<int
></code>
1116 the number of pixels the thumb has moved
1117 from its start position. Normal horizontal and vertical sliders will only
1118 have the firstOffset. Regions will have both, the first is the horizontal
1119 offset, the second the vertical.
1122 <code>secondOffset
<int
></code>
1123 the y offset for region sliders
1135 <div class=
"deprecated">
1136 <strong>Deprecated
</strong> use instance.subscribe(
"change") instead
1143 <a name=
"onDrag">onDrag
</a></h4>
1144 <div class=
"detail">
1150 <strong>onDrag
</strong>
1155 <div class=
"description">
1156 Handles the onDrag event for the slider background
1159 <div class=
"description">
1175 <a name=
"onMouseDown">onMouseDown
</a></h4>
1176 <div class=
"detail">
1182 <strong>onMouseDown
</strong>
1187 <div class=
"description">
1188 Handles the mousedown event for the slider background
1191 <div class=
"description">
1207 <a name=
"onSliderEnd">onSliderEnd
</a></h4>
1208 <div class=
"detail">
1214 <strong>onSliderEnd
</strong>
1219 <div class=
"description">
1220 Event that fires at the end of a slider thumb move
1223 <div class=
"description">
1234 <div class=
"deprecated">
1235 <strong>Deprecated
</strong> use instance.subscribe(
"slideEnd") instead
1242 <a name=
"onSlideStart">onSlideStart
</a></h4>
1243 <div class=
"detail">
1249 <strong>onSlideStart
</strong>
1254 <div class=
"description">
1255 Event that fires when the at the beginning of the slider thumb move
1258 <div class=
"description">
1269 <div class=
"deprecated">
1270 <strong>Deprecated
</strong> use instance.subscribe(
"slideStart") instead
1277 <a name=
"setRegionValue">setRegionValue
</a></h4>
1278 <div class=
"detail">
1284 <strong>setRegionValue
</strong>
1306 <div class=
"description">
1307 Provides a way to set the value of the region slider in code.
1310 <div class=
"description">
1313 <dt>Parameters:
</dt>
1315 <code>newOffset
<int
></code>
1316 the number of pixels the thumb should be
1317 positioned away from the initial start point (x axis for region)
1320 <code>newOffset2
<int
></code>
1321 the number of pixels the thumb should be
1322 positioned away from the initial start point (y axis for region)
1325 <code>skipAnim
<boolean
></code>
1326 set to true to disable the animation
1327 for this move action (but not others).
1330 <code>force
<boolean
></code>
1331 ignore the locked setting and set value anyway
1340 <dd>true if the move was performed, false if it failed
</dd>
1348 <a name=
"setStartSliderState">setStartSliderState
</a></h4>
1349 <div class=
"detail">
1355 <strong>setStartSliderState
</strong>
1360 <div class=
"description">
1361 Initialization that sets up the value offsets once the elements are ready
1364 <div class=
"description">
1380 <a name=
"setThumbCenterPoint">setThumbCenterPoint
</a></h4>
1381 <div class=
"detail">
1387 <strong>setThumbCenterPoint
</strong>
1392 <div class=
"description">
1393 When the thumb is available, we cache the centerpoint of the element so
1394 we can position the element correctly when the background is clicked
1397 <div class=
"description">
1413 <a name=
"setValue">setValue
</a></h4>
1414 <div class=
"detail">
1420 <strong>setValue
</strong>
1438 <div class=
"description">
1439 Provides a way to set the value of the slider in code.
1442 <div class=
"description">
1445 <dt>Parameters:
</dt>
1447 <code>newOffset
<int
></code>
1448 the number of pixels the thumb should be
1449 positioned away from the initial start point
1452 <code>skipAnim
<boolean
></code>
1453 set to true to disable the animation
1454 for this move action (but not others).
1457 <code>force
<boolean
></code>
1458 ignore the locked setting and set value anyway
1467 <dd>true if the move was performed, false if it failed
</dd>
1475 <a name=
"thumbMouseUp">thumbMouseUp
</a></h4>
1476 <div class=
"detail">
1482 <strong>thumbMouseUp
</strong>
1487 <div class=
"description">
1488 Handles mouseup event on the slider background
1491 <div class=
"description">
1507 <a name=
"toString">toString
</a></h4>
1508 <div class=
"detail">
1514 <strong>toString
</strong>
1519 <div class=
"description">
1523 <div class=
"description">
1531 <dd>string representation of the instance
</dd>
1539 <a name=
"unlock">unlock
</a></h4>
1540 <div class=
"detail">
1546 <strong>unlock
</strong>
1551 <div class=
"description">
1552 Unlocks the slider, overrides YAHOO.util.DragDrop
1555 <div class=
"description">
1571 <a name=
"verifyOffset">verifyOffset
</a></h4>
1572 <div class=
"detail">
1578 <strong>verifyOffset
</strong>
1588 <div class=
"description">
1589 Checks the background position element position. If it has moved from the
1590 baseline position, the constraints for the thumb are reset
1593 <div class=
"description">
1596 <dt>Parameters:
</dt>
1598 <code>checkPos
<boolean
></code>
1599 check the position instead of using cached value
1608 <dd>True if the offset is the same as the baseline.
</dd>
1616 <a name=
"YAHOO.widget.Slider.getHorizSlider">YAHOO.widget.Slider.getHorizSlider
</a></h4>
1617 <div class=
"detail">
1623 <strong>YAHOO.widget.Slider.getHorizSlider
</strong>
1649 <div class=
"description">
1650 Factory method for creating a horizontal slider
1653 <div class=
"description">
1656 <dt>Parameters:
</dt>
1658 <code>sBGElId
<String
></code>
1659 the id of the slider's background element
1662 <code>sHandleElId
<String
></code>
1663 the id of the thumb element
1666 <code>iLeft
<int
></code>
1667 the number of pixels the element can move left
1670 <code>iRight
<int
></code>
1671 the number of pixels the element can move right
1674 <code>iTickSize
<int
></code>
1675 optional parameter for specifying that the element
1676 should move a certain number pixels at a time.
1685 <dd>a horizontal slider control
</dd>
1693 <a name=
"YAHOO.widget.Slider.getSliderRegion">YAHOO.widget.Slider.getSliderRegion
</a></h4>
1694 <div class=
"detail">
1700 <strong>YAHOO.widget.Slider.getSliderRegion
</strong>
1734 <div class=
"description">
1735 Factory method for creating a slider region like the one in the color
1739 <div class=
"description">
1742 <dt>Parameters:
</dt>
1744 <code>sBGElId
<String
></code>
1745 the id of the slider's background element
1748 <code>sHandleElId
<String
></code>
1749 the id of the thumb element
1752 <code>iLeft
<int
></code>
1753 the number of pixels the element can move left
1756 <code>iRight
<int
></code>
1757 the number of pixels the element can move right
1760 <code>iUp
<int
></code>
1761 the number of pixels the element can move up
1764 <code>iDown
<int
></code>
1765 the number of pixels the element can move down
1768 <code>iTickSize
<int
></code>
1769 optional parameter for specifying that the element
1770 should move a certain number pixels at a time.
1779 <dd>a slider region control
</dd>
1787 <a name=
"YAHOO.widget.Slider.getVertSlider">YAHOO.widget.Slider.getVertSlider
</a></h4>
1788 <div class=
"detail">
1794 <strong>YAHOO.widget.Slider.getVertSlider
</strong>
1820 <div class=
"description">
1821 Factory method for creating a vertical slider
1824 <div class=
"description">
1827 <dt>Parameters:
</dt>
1829 <code>sBGElId
<String
></code>
1830 the id of the slider's background element
1833 <code>sHandleElId
<String
></code>
1834 the id of the thumb element
1837 <code>iUp
<int
></code>
1838 the number of pixels the element can move up
1841 <code>iDown
<int
></code>
1842 the number of pixels the element can move down
1845 <code>iTickSize
<int
></code>
1846 optional parameter for specifying that the element
1847 should move a certain number pixels at a time.
1856 <dd>a vertical slider control
</dd>
1866 <div class=
"section field inheritance">
1867 <h4>Methods inherited from
<a href=
"YAHOO.util.DragDrop.html">YAHOO.util.DragDrop
</a>:
</h4>
1868 <div class=
"content">
1871 <a href=
"YAHOO.util.DragDrop.html#addInvalidHandleClass">addInvalidHandleClass
</a>,
1872 <a href=
"YAHOO.util.DragDrop.html#addInvalidHandleId">addInvalidHandleId
</a>,
1873 <a href=
"YAHOO.util.DragDrop.html#addInvalidHandleType">addInvalidHandleType
</a>,
1874 <a href=
"YAHOO.util.DragDrop.html#addToGroup">addToGroup
</a>,
1875 <a href=
"YAHOO.util.DragDrop.html#applyConfig">applyConfig
</a>,
1876 <a href=
"YAHOO.util.DragDrop.html#b4Drag">b4Drag
</a>,
1877 <a href=
"YAHOO.util.DragDrop.html#b4DragDrop">b4DragDrop
</a>,
1878 <a href=
"YAHOO.util.DragDrop.html#b4DragOut">b4DragOut
</a>,
1879 <a href=
"YAHOO.util.DragDrop.html#b4DragOver">b4DragOver
</a>,
1880 <a href=
"YAHOO.util.DragDrop.html#b4EndDrag">b4EndDrag
</a>,
1881 <a href=
"YAHOO.util.DragDrop.html#b4MouseDown">b4MouseDown
</a>,
1882 <a href=
"YAHOO.util.DragDrop.html#b4StartDrag">b4StartDrag
</a>,
1883 <a href=
"YAHOO.util.DragDrop.html#clearConstraints">clearConstraints
</a>,
1884 <a href=
"YAHOO.util.DragDrop.html#clearTicks">clearTicks
</a>,
1885 <a href=
"YAHOO.util.DragDrop.html#endDrag">endDrag
</a>,
1886 <a href=
"YAHOO.util.DragDrop.html#getDragEl">getDragEl
</a>,
1887 <a href=
"YAHOO.util.DragDrop.html#getEl">getEl
</a>,
1888 <a href=
"YAHOO.util.DragDrop.html#getTick">getTick
</a>,
1889 <a href=
"YAHOO.util.DragDrop.html#handleMouseDown">handleMouseDown
</a>,
1890 <a href=
"YAHOO.util.DragDrop.html#handleOnAvailable">handleOnAvailable
</a>,
1891 <a href=
"YAHOO.util.DragDrop.html#init">init
</a>,
1892 <a href=
"YAHOO.util.DragDrop.html#initTarget">initTarget
</a>,
1893 <a href=
"YAHOO.util.DragDrop.html#isLocked">isLocked
</a>,
1894 <a href=
"YAHOO.util.DragDrop.html#isTarget">isTarget
</a>,
1895 <a href=
"YAHOO.util.DragDrop.html#isValidHandleChild">isValidHandleChild
</a>,
1896 <a href=
"YAHOO.util.DragDrop.html#lock">lock
</a>,
1897 <a href=
"YAHOO.util.DragDrop.html#onAvailable">onAvailable
</a>,
1898 <a href=
"YAHOO.util.DragDrop.html#onDrag">onDrag
</a>,
1899 <a href=
"YAHOO.util.DragDrop.html#onDragDrop">onDragDrop
</a>,
1900 <a href=
"YAHOO.util.DragDrop.html#onDragEnter">onDragEnter
</a>,
1901 <a href=
"YAHOO.util.DragDrop.html#onDragOut">onDragOut
</a>,
1902 <a href=
"YAHOO.util.DragDrop.html#onDragOver">onDragOver
</a>,
1903 <a href=
"YAHOO.util.DragDrop.html#onInvalidDrop">onInvalidDrop
</a>,
1904 <a href=
"YAHOO.util.DragDrop.html#onMouseDown">onMouseDown
</a>,
1905 <a href=
"YAHOO.util.DragDrop.html#onMouseUp">onMouseUp
</a>,
1906 <a href=
"YAHOO.util.DragDrop.html#padding">padding
</a>,
1907 <a href=
"YAHOO.util.DragDrop.html#removeFromGroup">removeFromGroup
</a>,
1908 <a href=
"YAHOO.util.DragDrop.html#removeInvalidHandleClass">removeInvalidHandleClass
</a>,
1909 <a href=
"YAHOO.util.DragDrop.html#removeInvalidHandleId">removeInvalidHandleId
</a>,
1910 <a href=
"YAHOO.util.DragDrop.html#removeInvalidHandleType">removeInvalidHandleType
</a>,
1911 <a href=
"YAHOO.util.DragDrop.html#resetConstraints">resetConstraints
</a>,
1912 <a href=
"YAHOO.util.DragDrop.html#setDragElId">setDragElId
</a>,
1913 <a href=
"YAHOO.util.DragDrop.html#setHandleElId">setHandleElId
</a>,
1914 <a href=
"YAHOO.util.DragDrop.html#setInitialPosition">setInitialPosition
</a>,
1915 <a href=
"YAHOO.util.DragDrop.html#setOuterHandleElId">setOuterHandleElId
</a>,
1916 <a href=
"YAHOO.util.DragDrop.html#setPadding">setPadding
</a>,
1917 <a href=
"YAHOO.util.DragDrop.html#setStartPosition">setStartPosition
</a>,
1918 <a href=
"YAHOO.util.DragDrop.html#setXConstraint">setXConstraint
</a>,
1919 <a href=
"YAHOO.util.DragDrop.html#setXTicks">setXTicks
</a>,
1920 <a href=
"YAHOO.util.DragDrop.html#setYConstraint">setYConstraint
</a>,
1921 <a href=
"YAHOO.util.DragDrop.html#setYTicks">setYTicks
</a>,
1922 <a href=
"YAHOO.util.DragDrop.html#startDrag">startDrag
</a>,
1923 <a href=
"YAHOO.util.DragDrop.html#toString">toString
</a>,
1924 <a href=
"YAHOO.util.DragDrop.html#unlock">unlock
</a>,
1925 <a href=
"YAHOO.util.DragDrop.html#unreg">unreg
</a>
1929 <div class=
"section field inheritance">
1930 <h4>Methods inherited from
<a href=
"YAHOO.util.EventProvider.html">YAHOO.util.EventProvider
</a>:
</h4>
1931 <div class=
"content">
1934 <a href=
"YAHOO.util.EventProvider.html#createEvent">createEvent
</a>,
1935 <a href=
"YAHOO.util.EventProvider.html#fireEvent">fireEvent
</a>,
1936 <a href=
"YAHOO.util.EventProvider.html#hasEvent">hasEvent
</a>,
1937 <a href=
"YAHOO.util.EventProvider.html#subscribe">subscribe
</a>,
1938 <a href=
"YAHOO.util.EventProvider.html#unsubscribe">unsubscribe
</a>,
1939 <a href=
"YAHOO.util.EventProvider.html#unsubscribeAll">unsubscribeAll
</a>
1944 <div class=
"section method details">
1945 <h3><a name=
"methodDetails">Events
</a></h3>
1946 <div class=
"content">
1948 <a name=
"change">change
</a></h4>
1949 <div class=
"detail">
1954 <strong>change
</strong>
1970 <div class=
"description">
1971 Event the fires when the value of the control changes. If
1972 the control is animated the event will fire every point
1976 <div class=
"description">
1980 <dt>Parameters:
</dt>
1982 <code>newOffset|x
<int
></code>
1983 the new offset for normal sliders, or the new
1984 x offset for region sliders
1987 <code>y
<int
></code>
1988 the number of pixels the thumb has moved on the y axis
1989 (region sliders only)
1999 <a name=
"slideEnd">slideEnd
</a></h4>
2000 <div class=
"detail">
2005 <strong>slideEnd
</strong>
2012 <div class=
"description">
2013 Event that fires at the end of a slider thumb move
2016 <div class=
"description">
2026 <a name=
"slideStart">slideStart
</a></h4>
2027 <div class=
"detail">
2032 <strong>slideStart
</strong>
2039 <div class=
"description">
2040 Event that fires at the beginning of a slider thumb move.
2043 <div class=
"description">
2064 <div class=
"module">
2066 <ul class=
"content">
2068 <li class=
""><a href=
"module_animation.html">animation
</a></li>
2070 <li class=
""><a href=
"module_autocomplete.html">autocomplete
</a></li>
2072 <li class=
""><a href=
"module_button.html">button
</a></li>
2074 <li class=
""><a href=
"module_calendar.html">calendar
</a></li>
2076 <li class=
""><a href=
"module_connection.html">connection
</a></li>
2078 <li class=
""><a href=
"module_container.html">container
</a></li>
2080 <li class=
""><a href=
"module_datasource.html">datasource
</a></li>
2082 <li class=
""><a href=
"module_datatable.html">datatable
</a></li>
2084 <li class=
""><a href=
"module_dom.html">dom
</a></li>
2086 <li class=
""><a href=
"module_dragdrop.html">dragdrop
</a></li>
2088 <li class=
""><a href=
"module_element.html">element
</a></li>
2090 <li class=
""><a href=
"module_event.html">event
</a></li>
2092 <li class=
""><a href=
"module_history.html">history
</a></li>
2094 <li class=
""><a href=
"module_logger.html">logger
</a></li>
2096 <li class=
""><a href=
"module_menu.html">menu
</a></li>
2098 <li class=
"selected"><a href=
"module_slider.html">slider
</a></li>
2100 <li class=
""><a href=
"module_tabview.html">tabview
</a></li>
2102 <li class=
""><a href=
"module_treeview.html">treeview
</a></li>
2104 <li class=
""><a href=
"module_yahoo.html">yahoo
</a></li>
2108 <div class=
"module">
2110 <ul class=
"content">
2111 <li class=
"selected"><a href=
"YAHOO.widget.Slider.html">YAHOO.widget.Slider
</a></li>
2112 <li class=
""><a href=
"YAHOO.widget.SliderThumb.html">YAHOO.widget.SliderThumb
</a></li>
2116 <div class=
"module">
2118 <ul class=
"content">
2119 <li class=
""><a href=
"Slider.js.html">Slider.js
</a></li>
2120 <li class=
""><a href=
"SliderThumb.js.html">SliderThumb.js
</a></li>
2124 <div class=
"module">
2126 <ul class=
"content">
2127 <li><a href=
"#animate">animate
</a>
2128 <!--<code><boolean></code>-->
2130 <li><a href=
"#animationDuration">animationDuration
</a>
2131 <!--<code><boolean></code>-->
2133 <li><a href=
"#backgroundEnabled">backgroundEnabled
</a>
2134 <!--<code><boolean></code>-->
2136 <li><a href=
"#baselinePos">baselinePos
</a>
2137 <!--<code><boolean></code>-->
2139 <li><a href=
"#enableKeys">enableKeys
</a>
2140 <!--<code><boolean></code>-->
2142 <li><a href=
"#isTarget">isTarget
</a>
2143 <!--<code><boolean></code>-->
2145 <li><a href=
"#keyIncrement">keyIncrement
</a>
2146 <!--<code><boolean></code>-->
2148 <li><a href=
"#moveComplete">moveComplete
</a>
2149 <!--<code><boolean></code>-->
2151 <li><a href=
"#thumb">thumb
</a>
2152 <!--<code><boolean></code>-->
2154 <li><a href=
"#thumbCenterPoint">thumbCenterPoint
</a>
2155 <!--<code><boolean></code>-->
2157 <li><a href=
"#tickPause">tickPause
</a>
2158 <!--<code><boolean></code>-->
2160 <li><a href=
"#type">type
</a>
2161 <!--<code><boolean></code>-->
2163 <li><a href=
"#YAHOO.widget.Slider.ANIM_AVAIL">YAHOO.widget.Slider.ANIM_AVAIL
</a>
2164 <!--<code><boolean></code>-->
2169 <div class=
"module">
2171 <ul class=
"content">
2172 <li><!--<code>void</code>-->
2173 <a href=
"#_getNextX">_getNextX
</a>
2175 <li><!--<code>void</code>-->
2176 <a href=
"#_getNextY">_getNextY
</a>
2178 <li><!--<code>void</code>-->
2179 <a href=
"#b4MouseDown">b4MouseDown
</a>
2181 <li><!--<code>void</code>-->
2182 <a href=
"#endMove">endMove
</a>
2184 <li><!--<code>void</code>-->
2185 <a href=
"#fireEvents">fireEvents
</a>
2187 <li><!--<code>void</code>-->
2188 <a href=
"#focus">focus
</a>
2190 <li><!--<code>SliderThumb</code>-->
2191 <a href=
"#getThumb">getThumb
</a>
2193 <li><!--<code>int</code>-->
2194 <a href=
"#getValue">getValue
</a>
2196 <li><!--<code>int</code>-->
2197 <a href=
"#getXValue">getXValue
</a>
2199 <li><!--<code>int</code>-->
2200 <a href=
"#getYValue">getYValue
</a>
2202 <li><!--<code>void</code>-->
2203 <a href=
"#handleKeyDown">handleKeyDown
</a>
2205 <li><!--<code>void</code>-->
2206 <a href=
"#handleKeyPress">handleKeyPress
</a>
2208 <li><!--<code>void</code>-->
2209 <a href=
"#handleThumbChange">handleThumbChange
</a>
2211 <li><!--<code>void</code>-->
2212 <a href=
"#initSlider">initSlider
</a>
2214 <li><!--<code>void</code>-->
2215 <a href=
"#initThumb">initThumb
</a>
2217 <li><!--<code>void</code>-->
2218 <a href=
"#lock">lock
</a>
2220 <li><!--<code>void</code>-->
2221 <a href=
"#moveOneTick">moveOneTick
</a>
2223 <li><!--<code>void</code>-->
2224 <a href=
"#moveThumb">moveThumb
</a>
2226 <li><!--<code>void</code>-->
2227 <a href=
"#onAvailable">onAvailable
</a>
2229 <li><!--<code>void</code>-->
2230 <a href=
"#onChange">onChange
</a>
2232 <li><!--<code>void</code>-->
2233 <a href=
"#onDrag">onDrag
</a>
2235 <li><!--<code>void</code>-->
2236 <a href=
"#onMouseDown">onMouseDown
</a>
2238 <li><!--<code>void</code>-->
2239 <a href=
"#onSliderEnd">onSliderEnd
</a>
2241 <li><!--<code>void</code>-->
2242 <a href=
"#onSlideStart">onSlideStart
</a>
2244 <li><!--<code>boolean</code>-->
2245 <a href=
"#setRegionValue">setRegionValue
</a>
2247 <li><!--<code>void</code>-->
2248 <a href=
"#setStartSliderState">setStartSliderState
</a>
2250 <li><!--<code>void</code>-->
2251 <a href=
"#setThumbCenterPoint">setThumbCenterPoint
</a>
2253 <li><!--<code>boolean</code>-->
2254 <a href=
"#setValue">setValue
</a>
2256 <li><!--<code>void</code>-->
2257 <a href=
"#thumbMouseUp">thumbMouseUp
</a>
2259 <li><!--<code>string</code>-->
2260 <a href=
"#toString">toString
</a>
2262 <li><!--<code>void</code>-->
2263 <a href=
"#unlock">unlock
</a>
2265 <li><!--<code>boolean</code>-->
2266 <a href=
"#verifyOffset">verifyOffset
</a>
2268 <li><!--<code>Slider</code>-->
2269 <a href=
"#YAHOO.widget.Slider.getHorizSlider">YAHOO.widget.Slider.getHorizSlider
</a>
2271 <li><!--<code>Slider</code>-->
2272 <a href=
"#YAHOO.widget.Slider.getSliderRegion">YAHOO.widget.Slider.getSliderRegion
</a>
2274 <li><!--<code>Slider</code>-->
2275 <a href=
"#YAHOO.widget.Slider.getVertSlider">YAHOO.widget.Slider.getVertSlider
</a>
2280 <div class=
"module">
2282 <ul class=
"content">
2284 <a href=
"#change">change
</a>
2287 <a href=
"#slideEnd">slideEnd
</a>
2290 <a href=
"#slideStart">slideStart
</a>
2301 Copyright
© 2007 Yahoo! Inc. All rights reserved.