# Yahoo! UI Library

### slider 3.1.1

Yahoo! UI Library > slider > Slider
Search:
Filters Show Private Show Protected Show Deprecated

## Class Slider - extends SliderBase - uses SliderValueRange , ClickableRail

Create a slider to represent an integer value between a given minimum and maximum. Sliders may be aligned vertically or horizontally, based on the `axis` configuration.

### Constructor

Slider `( config )`

Parameters:
  `config <Object>` Configuration object

#### Properties inherited from Attribute:

``

#### Properties inherited from SliderBase:

`_dd, _key, axis, BOUNDING_TEMPLATE, CONTENT_TEMPLATE, rail, RAIL_TEMPLATE, thumb, THUMB_TEMPLATE`

#### Properties inherited from Base:

`name`

#### Properties inherited from Widget:

`_BIND_UI_ATTRS, _SYNC_UI_ATTRS, BOUNDING_TEMPLATE, CONTENT_TEMPLATE, DEF_PARENT_NODE, DEF_UNIT, UI_EVENTS`

#### Properties inherited from SliderValueRange:

`_factor`

#### Methods inherited from Plugin.Host:

`_destroyPlugins, _initPlugins, _plug, _unplug, hasPlugin, plug, unplug`

#### Methods inherited from SliderBase:

`_afterDisabledChange, _afterDrag, _afterLengthChange, _bindThumbDD, _bindValueLogic, _initThumbUrl, _onDragEnd, _onDragStart, _setAxis, _setLength, _syncThumbPosition, _uiMoveThumb, _uiSetRailLength, bindUI, initializer, renderRail, renderThumb, renderUI, syncUI`

#### Methods inherited from Attribute:

`_addAttrs, _addLazyAttr, _defAttrChangeFn, _fireAttrChange, _getAttr, _getAttrInitVal, _getAttrs, _getStateVal, _isLazyAttr, _normAttrVals, _protectAttrs, _set, _setAttr, _setAttrs, _setAttrVal, _setStateVal, addAttr, addAttrs, attrAdded, get, getAttrs, modifyAttr, removeAttr, reset, set, setAttrs`

#### Methods inherited from Widget:

`_applyParsedConfig, _applyParser, _bindAttrUI, _bindDOM, _bindUI, _createUIEvent, _defaultCB, _defRenderFn, _getHtmlParser, _getSrcNode, _getStrings, _getUIEventNode, _guid, _initUIEvent, _isUIEvent, _onDocFocus, _onDocMouseDown, _removeLoadingClassNames, _renderBox, _renderBoxClassNames, _renderUI, _setAttrUI, _setBB, _setBox, _setCB, _setStrings, _strSetter, _syncAttrUI, _syncUI, _uiSetDim, _uiSetDisabled, _uiSetFocused, _uiSetHeight, _uiSetTabIndex, _uiSetVisible, _uiSetWidth, _uiSizeCB, _unbindDOM, _unbindUI, _validTabIndex, bindUI, blur, destructor, disable, enable, focus, getClassName, getDefaultLocale, getSkinName, getString, getStrings, hide, initializer, render, renderer, renderUI, show, syncUI, toString`

#### Methods inherited from EventTarget:

`_getType, _monitor, _parseType, addTarget, after, before, bubble, detach, detachAll, fire, getEvent, getTargets, on, once, publish, removeTarget, subscribe, unsubscribe, unsubscribeAll`

#### Methods inherited from Base:

`_aggregateAttrs, _defDestroyFn, _defInitFn, _destroyHierarchy, _filterAttrCfs, _getAttrCfgs, _getClasses, _initHierarchy, _initHierarchyData, _preInitEventCfg, destroy, init, toString`

#### Methods inherited from ClickableRail:

`_bindClickableRail, _defRailMouseDownFn, _getThumbDestination, _initClickableRail, _onRailMouseDown, _resolveThumb, _unbindClickableRail`

#### Methods inherited from SliderValueRange:

`_afterMaxChange, _afterMinChange, _afterValueChange, _bindValueLogic, _calculateFactor, _defThumbMoveFn, _initSliderValueRange, _nearestValue, _offsetToValue, _setNewValue, _setPosition, _syncThumbPosition, _validateNewMax, _validateNewMin, _valueToOffset, _verifyValue, getValue, setValue`

#### Events inherited from SliderBase:

`axisChange, lengthChange, slideStart, thumbMove, thumbUrlChange,`

#### Events inherited from Base:

`destroy, destroyedChange, init, initializedChange,`

#### Events inherited from ClickableRail:

`clickableRailChange, railMouseDown,`

#### Events inherited from Widget:

`boundingBoxChange, contentBoxChange, disabledChange, focusedChange, heightChange, idChange, localeChange, renderChange, renderedChange, srcNodeChange, stringsChange, tabIndexChange, visibleChange, widget:contentUpdate, widget:render, widthChange,`

#### Events inherited from SliderValueRange:

`maxChange, minChange, valueChange,`

#### Configuration attributes inherited from SliderBase:

`axis, length thumbUrl`

#### Configuration attributes inherited from Base:

`destroyed initialized`

#### Configuration attributes inherited from ClickableRail:

`clickableRail`

#### Configuration attributes inherited from Widget:

`boundingBox, contentBox, disabled, focused, height, id, locale render rendered srcNode strings tabIndex visible width`

#### Configuration attributes inherited from SliderValueRange:

`max, min value`

Copyright © 2010 Yahoo! Inc. All rights reserved.