Class: SC.SliderView
Extends
SC.Control, SC.View.
SliderView displays a horizontal slider control that you can use to choose from a spectrum (or a sequence) of values.
The property value
holds the slider's current value. You can set the
minimum
, maximum
and step
properties as well.
Defined in: slider.js
- Since:
- SproutCore 1.0
Field Summary
- Fields borrowed from SC.View:
- acceptsFirstResponder, acceptsMultitouch, ariaHidden, ariaRole, attributeBindings, autoMixins, backgroundColor, childViewLayout, childViewLayoutOptions, childViews, childViewsNeedLayout, classNameBindings, classNames, concatenatedProperties, createdByParent, designMode, displayProperties, enabledState, firstKeyView, hasLayout, hasTouch, hasVisibility, isBuildingIn, isBuildingOut, isChildViewLayoutLive, isEnabled, isFixedHeight, isFixedPosition, isFixedSize, isFixedWidth, isKeyResponder, isTextSelectable, isView, isVisible, lastKeyView, layerLocationNeedsUpdate, layerNeedsUpdate, layout, modeAdjust, nextKeyView, page, pane, parentView, previousKeyView, renderDelegateName, shouldInheritCursor, shouldInheritEnabled, tagName, themeName, toolTip, touchBoundary, transitionAdjust, transitionAdjustOptions, transitionHide, transitionHideOptions, transitionIn, transitionInOptions, transitionOut, transitionOutOptions, transitionShow, transitionShowOptions, useStaticLayout
- Fields borrowed from SC.Responder:
- hasFirstResponder, isFirstResponder, responderContext
- Fields borrowed from SC.Object:
- isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
- Fields borrowed from SC.Control:
- controlSize, errorLabel, fieldKey, fieldLabel, isActive, isControl, isSelected
Instance Methods
- displayValue()
- keyDown(evt)
- mouseDown(evt)
- mouseDragged(evt)
- mouseUp(evt)
- mouseWheel(evt)
- stepPositions()
- steps()
- touchEnd(evt)
- touchesDragged(evt)
- touchStart(evt)
Field Detail
contentMaximumKey StringOptionally specify the key used to extract the maximum slider value from the content object. If this is set to null then the maximum value will not be derived from the content object.
Optionally specify the key used to extract the minimum slider value from the content object. If this is set to null then the minimum value will not be derived from the content object.
- Default value:
- 1
- Default value:
- 0
Optionally set to the minimum step size allowed.
All values will be rounded to this step size when displayed.
- Default value:
- 0.1
Instance Method Detail
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt
- Parameters:
- evt